Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libusb Rename a few more functions so that all are prefi...
details: https://anonhg.NetBSD.org/src/rev/966f45f4ebe3
branches: trunk
changeset: 472913:966f45f4ebe3
user: augustss <augustss%NetBSD.org@localhost>
date: Wed May 12 00:37:43 1999 +0000
description:
Rename a few more functions so that all are prefixed by hid.
diffstat:
lib/libusb/Makefile | 9 +++++----
lib/libusb/data.c | 6 +++---
lib/libusb/descr.c | 6 +++---
lib/libusb/usage.c | 8 ++++----
lib/libusb/usb.h | 16 ++++++++--------
5 files changed, 23 insertions(+), 22 deletions(-)
diffs (148 lines):
diff -r 4413f15cd7bb -r 966f45f4ebe3 lib/libusb/Makefile
--- a/lib/libusb/Makefile Wed May 12 00:14:58 1999 +0000
+++ b/lib/libusb/Makefile Wed May 12 00:37:43 1999 +0000
@@ -1,13 +1,14 @@
-# $NetBSD: Makefile,v 1.2 1999/05/12 00:14:58 augustss Exp $
+# $NetBSD: Makefile,v 1.3 1999/05/12 00:37:43 augustss Exp $
LIB= usb
MAN= usb.3
-MLINKS= usb.3 libusb.3 usb.3 get_report_desc.3 usb.3 dispose_report_desc.3 \
+MLINKS= usb.3 libusb.3 usb.3 hid_get_report_desc.3 \
+ usb.3 hid_dispose_report_desc.3 \
usb.3 hid_start_parse.3 usb.3 hid_end_parse.3 \
usb.3 hid_get_item.3 usb.3 hid_report_size.3 usb.3 hid_locate.3 \
- usb.3 usage_page.3 usb.3 usage_in_page.3 usb.3 init_hid.3 \
- usb.3 get_data.3 usb.3 set_data.3
+ usb.3 hid_usage_page.3 usb.3 hid_usage_in_page.3 usb.3 hid_init.3 \
+ usb.3 hid_get_data.3 usb.3 hid_set_data.3
SRCS= descr.c parse.c usage.c data.c
diff -r 4413f15cd7bb -r 966f45f4ebe3 lib/libusb/data.c
--- a/lib/libusb/data.c Wed May 12 00:14:58 1999 +0000
+++ b/lib/libusb/data.c Wed May 12 00:37:43 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: data.c,v 1.3 1999/05/12 00:04:49 augustss Exp $ */
+/* $NetBSD: data.c,v 1.4 1999/05/12 00:37:43 augustss Exp $ */
/*
* Copyright (c) 1999 Lennart Augustsson <augustss%netbsd.org@localhost>
@@ -30,7 +30,7 @@
#include "usb.h"
int
-get_data(void *p, hid_item_t *h)
+hid_get_data(void *p, hid_item_t *h)
{
unsigned char *buf = p;
unsigned int hpos = h->pos; /* bit position of data */
@@ -56,7 +56,7 @@
}
void
-set_data(void *p, hid_item_t *h, int data)
+hid_set_data(void *p, hid_item_t *h, int data)
{
unsigned char *buf = p;
unsigned int hpos = h->pos; /* bit position of data */
diff -r 4413f15cd7bb -r 966f45f4ebe3 lib/libusb/descr.c
--- a/lib/libusb/descr.c Wed May 12 00:14:58 1999 +0000
+++ b/lib/libusb/descr.c Wed May 12 00:37:43 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: descr.c,v 1.2 1999/05/11 21:15:46 augustss Exp $ */
+/* $NetBSD: descr.c,v 1.3 1999/05/12 00:37:43 augustss Exp $ */
/*
* Copyright (c) 1999 Lennart Augustsson <augustss%netbsd.org@localhost>
@@ -37,7 +37,7 @@
#include "usbvar.h"
report_desc_t
-get_report_desc(fd)
+hid_get_report_desc(fd)
int fd;
{
struct usb_ctl_report_desc rep;
@@ -56,7 +56,7 @@
return (r);
}
-void dispose_report_desc(r)
+void hid_dispose_report_desc(r)
report_desc_t r;
{
free(r);
diff -r 4413f15cd7bb -r 966f45f4ebe3 lib/libusb/usage.c
--- a/lib/libusb/usage.c Wed May 12 00:14:58 1999 +0000
+++ b/lib/libusb/usage.c Wed May 12 00:37:43 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usage.c,v 1.2 1999/05/11 21:15:46 augustss Exp $ */
+/* $NetBSD: usage.c,v 1.3 1999/05/12 00:37:43 augustss Exp $ */
/*
* Copyright (c) 1999 Lennart Augustsson <augustss%netbsd.org@localhost>
@@ -66,7 +66,7 @@
#endif
void
-init_hid(char *hidname)
+hid_init(char *hidname)
{
FILE *f;
char line[100], name[100], *p, *n;
@@ -151,7 +151,7 @@
}
char *
-usage_page(int i)
+hid_usage_page(int i)
{
static char b[10];
int k;
@@ -167,7 +167,7 @@
}
char *
-usage_in_page(unsigned int u)
+hid_usage_in_page(unsigned int u)
{
int page = HID_PAGE(u);
int i = HID_USAGE(u);
diff -r 4413f15cd7bb -r 966f45f4ebe3 lib/libusb/usb.h
--- a/lib/libusb/usb.h Wed May 12 00:14:58 1999 +0000
+++ b/lib/libusb/usb.h Wed May 12 00:37:43 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb.h,v 1.3 1999/05/12 00:04:49 augustss Exp $ */
+/* $NetBSD: usb.h,v 1.4 1999/05/12 00:37:44 augustss Exp $ */
/*
* Copyright (c) 1999 Lennart Augustsson <augustss%netbsd.org@localhost>
@@ -72,8 +72,8 @@
#define HID_USAGE(u) ((u) & 0xffff)
/* Obtaining a report descriptor, descr.c: */
-report_desc_t get_report_desc __P((int file));
-void dispose_report_desc __P((report_desc_t));
+report_desc_t hid_get_report_desc __P((int file));
+void hid_dispose_report_desc __P((report_desc_t));
/* Parsing of a HID report descriptor, parse.c: */
hid_data_t hid_start_parse __P((report_desc_t d, int kindset));
@@ -83,10 +83,10 @@
int hid_locate __P((report_desc_t d, unsigned int usage, enum hid_kind k, hid_item_t *h));
/* Conversion to/from usage names, usage.c: */
-char *usage_page __P((int i));
-char *usage_in_page __P((unsigned int u));
-void init_hid __P((char *file));
+char *hid_usage_page __P((int i));
+char *hid_usage_in_page __P((unsigned int u));
+void hid_init __P((char *file));
/* Extracting/insertion of data, data.c: */
-int get_data __P((void *p, hid_item_t *h));
-void set_data __P((void *p, hid_item_t *h, int data));
+int hid_get_data __P((void *p, hid_item_t *h));
+void hid_set_data __P((void *p, hid_item_t *h, int data));
Home |
Main Index |
Thread Index |
Old Index