Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2013 12:17:09 +0200
From:      David Demelier <>
Subject:   Question about usbhid.h and dev/usb/usbhid.h
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help

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

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


Demelier David

Want to link to this message? Use this URL: <>