Question about usbhid.h and dev/usb/usbhid.h
David Demelier
demelier.david at gmail.com
Fri Aug 9 10:17:11 UTC 2013
Hi,
I'm currently writing a USB driver for the SFML framework. I'm reading
the code of SDL and seen the usage of usbhid.
However, /usr/include/usbhid.h and /usr/include/dev/usb/usbhid.h are
different. But they have both some common functions and the same data
definition.
For instance, enum and structures are identical, but the second one
has much more #define about hid usages.
Why are these files so much different and still having some identical
definitions? Isn't better to add full definitions and data to the
second one and just add a #include <dev/usb/usbhid.h> in
/usr/include/usbhid.h?
Regards,
--
Demelier David
More information about the freebsd-questions
mailing list