diff options
author | Joshua Stein <jcs@cvs.openbsd.org> | 2016-01-08 16:55:33 +0000 |
---|---|---|
committer | Joshua Stein <jcs@cvs.openbsd.org> | 2016-01-08 16:55:33 +0000 |
commit | 3c3fadee7eb7731cd3ba2ee8bda66598e964495f (patch) | |
tree | 86b59dce02173dabc1d5cb080e4b08598e4c2b63 /sys/dev | |
parent | 0ae9d7ef5cd651fd73fe123f0b0826e8619d2119 (diff) |
protect structs in hid.h with #ifdef _KERNEL, to allow inclusion in
libusbhid
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/hid/hid.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/hid/hid.h b/sys/dev/hid/hid.h index 53af2bae669..0aa0a8804d3 100644 --- a/sys/dev/hid/hid.h +++ b/sys/dev/hid/hid.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hid.h,v 1.1 2016/01/08 15:54:13 jcs Exp $ */ +/* $OpenBSD: hid.h,v 1.2 2016/01/08 16:55:32 jcs Exp $ */ /* $NetBSD: hid.h,v 1.8 2002/07/11 21:14:25 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/hid.h,v 1.7 1999/11/17 22:33:40 n_hibma Exp $ */ @@ -35,6 +35,8 @@ #ifndef _HIDHID_H_ #define _HIDHID_H_ +#ifdef _KERNEL + enum hid_kind { hid_input, hid_output, @@ -91,6 +93,8 @@ int hid_locate(const void *, int, int32_t, uint8_t, enum hid_kind, int32_t hid_get_data(const uint8_t *buf, int, struct hid_location *); int hid_is_collection(const void *, int, uint8_t, int32_t); +#endif /* _KERNEL */ + /* Usage pages */ #define HUP_UNDEFINED 0x0000 #define HUP_GENERIC_DESKTOP 0x0001 |