Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2013 12:17:09 +0200
From:      David Demelier <demelier.david@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Question about usbhid.h and dev/usb/usbhid.h
Message-ID:  <CAO+PfDcB3ca+9F-CrJupMecPpKQH_F8bx3NN8vdSkUEPzyGwkw@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAO+PfDcB3ca+9F-CrJupMecPpKQH_F8bx3NN8vdSkUEPzyGwkw>