mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 09:12:44 +00:00
Add __BEGIN_DECLS / __END_DECLS so this can be used in C++ code.
MFC after: 1 week
This commit is contained in:
parent
7fcc4669d8
commit
e404f75180
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130030
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user