summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2001-02-06 01:02:59 +0000
committerbde <bde@FreeBSD.org>2001-02-06 01:02:59 +0000
commit55aff82fbc47b7146df4afe1f574c2de17db81f5 (patch)
treec79fadcedd9f4a85da39923d483b6174073e8d88 /lib
parent41bcb6a4a016c530880cb8ddb5aa8fa4afdf3138 (diff)
downloadFreeBSD-src-55aff82fbc47b7146df4afe1f574c2de17db81f5.zip
FreeBSD-src-55aff82fbc47b7146df4afe1f574c2de17db81f5.tar.gz
Fixed prototypes. About half of them were wrong (mainly due to const
poisoning having not reached here).
Diffstat (limited to 'lib')
-rw-r--r--lib/libusb/usb.320
-rw-r--r--lib/libusbhid/usb.320
-rw-r--r--lib/libusbhid/usbhid.320
3 files changed, 30 insertions, 30 deletions
diff --git a/lib/libusb/usb.3 b/lib/libusb/usb.3
index 68d658e..0b58ea9 100644
--- a/lib/libusb/usb.3
+++ b/lib/libusb/usb.3
@@ -63,21 +63,21 @@
.Ft int
.Fn hid_report_size "report_desc_t d" "unsigned int id" "hid_kind_t k"
.Ft int
-.Fn hid_locate "report_desc_t d" "u_int usage" "hid_kind_t k" "hid_item_t *h"
-.Ft char *
+.Fn hid_locate "report_desc_t d" "unsigned int usage" "hid_kind_t k" "hid_item_t *h"
+.Ft const char *
.Fn hid_usage_page "int i"
-.Ft char *
-.Fn hid_usage_in_page "u_int u"
+.Ft const char *
+.Fn hid_usage_in_page "unsigned int u"
.Ft int
-.Fn hid_parse_usage_page "const char *"
-.Ft char *
-.Fn hid_parse_usage_in_page "const char *"
+.Fn hid_parse_usage_page "const char *name"
+.Ft int
+.Fn hid_parse_usage_in_page "const char *name"
.Ft void
-.Fn hid_init "char *file"
+.Fn hid_init "const char *file"
.Ft int
-.Fn hid_get_data "void *data" "hid_item_t *h"
+.Fn hid_get_data "const void *data" "const hid_item_t *h"
.Ft void
-.Fn hid_set_data "void *data" "hid_item_t *h" "u_int data"
+.Fn hid_set_data "void *p" "const hid_item_t *h" "int data"
.Sh DESCRIPTION
The
.Nm
diff --git a/lib/libusbhid/usb.3 b/lib/libusbhid/usb.3
index 68d658e..0b58ea9 100644
--- a/lib/libusbhid/usb.3
+++ b/lib/libusbhid/usb.3
@@ -63,21 +63,21 @@
.Ft int
.Fn hid_report_size "report_desc_t d" "unsigned int id" "hid_kind_t k"
.Ft int
-.Fn hid_locate "report_desc_t d" "u_int usage" "hid_kind_t k" "hid_item_t *h"
-.Ft char *
+.Fn hid_locate "report_desc_t d" "unsigned int usage" "hid_kind_t k" "hid_item_t *h"
+.Ft const char *
.Fn hid_usage_page "int i"
-.Ft char *
-.Fn hid_usage_in_page "u_int u"
+.Ft const char *
+.Fn hid_usage_in_page "unsigned int u"
.Ft int
-.Fn hid_parse_usage_page "const char *"
-.Ft char *
-.Fn hid_parse_usage_in_page "const char *"
+.Fn hid_parse_usage_page "const char *name"
+.Ft int
+.Fn hid_parse_usage_in_page "const char *name"
.Ft void
-.Fn hid_init "char *file"
+.Fn hid_init "const char *file"
.Ft int
-.Fn hid_get_data "void *data" "hid_item_t *h"
+.Fn hid_get_data "const void *data" "const hid_item_t *h"
.Ft void
-.Fn hid_set_data "void *data" "hid_item_t *h" "u_int data"
+.Fn hid_set_data "void *p" "const hid_item_t *h" "int data"
.Sh DESCRIPTION
The
.Nm
diff --git a/lib/libusbhid/usbhid.3 b/lib/libusbhid/usbhid.3
index 68d658e..0b58ea9 100644
--- a/lib/libusbhid/usbhid.3
+++ b/lib/libusbhid/usbhid.3
@@ -63,21 +63,21 @@
.Ft int
.Fn hid_report_size "report_desc_t d" "unsigned int id" "hid_kind_t k"
.Ft int
-.Fn hid_locate "report_desc_t d" "u_int usage" "hid_kind_t k" "hid_item_t *h"
-.Ft char *
+.Fn hid_locate "report_desc_t d" "unsigned int usage" "hid_kind_t k" "hid_item_t *h"
+.Ft const char *
.Fn hid_usage_page "int i"
-.Ft char *
-.Fn hid_usage_in_page "u_int u"
+.Ft const char *
+.Fn hid_usage_in_page "unsigned int u"
.Ft int
-.Fn hid_parse_usage_page "const char *"
-.Ft char *
-.Fn hid_parse_usage_in_page "const char *"
+.Fn hid_parse_usage_page "const char *name"
+.Ft int
+.Fn hid_parse_usage_in_page "const char *name"
.Ft void
-.Fn hid_init "char *file"
+.Fn hid_init "const char *file"
.Ft int
-.Fn hid_get_data "void *data" "hid_item_t *h"
+.Fn hid_get_data "const void *data" "const hid_item_t *h"
.Ft void
-.Fn hid_set_data "void *data" "hid_item_t *h" "u_int data"
+.Fn hid_set_data "void *p" "const hid_item_t *h" "int data"
.Sh DESCRIPTION
The
.Nm
OpenPOWER on IntegriCloud