1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00

Add __BEGIN_DECLS / __END_DECLS so this can be used in C++ code.

MFC after:	1 week
This commit is contained in:
Dag-Erling Smørgrav 2004-06-03 15:04:24 +00:00
parent 7fcc4669d8
commit e404f75180
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130030

View File

@ -81,6 +81,8 @@ typedef struct hid_item {
#define HID_PAGE(u) (((u) >> 16) & 0xffff)
#define HID_USAGE(u) ((u) & 0xffff)
__BEGIN_DECLS
/* Obtaining a report descriptor, descr.c: */
report_desc_t hid_get_report_desc(int file);
report_desc_t hid_use_report_desc(unsigned char *data, unsigned int size);
@ -103,3 +105,5 @@ int hid_parse_usage_page(const char *name);
/* Extracting/insertion of data, data.c: */
int hid_get_data(const void *p, const hid_item_t *h);
void hid_set_data(void *p, const hid_item_t *h, int data);
__END_DECLS