#6115: Extension of the USB HID Usages -------------------------+-------------------------------------------------- Reporter: x-ist | Owner: mmlr Type: enhancement | Status: assigned Priority: normal | Milestone: R1 Component: - General | Version: R1/alpha2 Keywords: usb_hid.h | Platform: All Blockedby: | Patch: 1 Blocking: | -------------------------+-------------------------------------------------- Comment(by x-ist): Replying to [comment:7 phoudoin]: > I'm against: all USB definitions are from external specifiers, either USB-IF or vendors. Neither Be Inc at his time neither us can influence USB standards specification. We made some effort to keep these definitions names from being as crypted as seen on other platforms, witch is great, but prefixing with B_ wont add any value but could make someone think it's specific to BeOS/Haiku. That's my opinion too. > On the other side, I'm for having one single prefix for every USB constants in our USB_*.h, which we don't have yet. Same should applied for typenames too (usb_*). IMO, when working with USB one definitely knows about HID, such that using {{{USB_}}} wouldn't povide more meaning to the name. Here is an example of a name lend from the spec as is, with alternative prefixes: {{{HID_UID_WD_SCALE_STATUS_STABLE_AT_CENTER_OF_ZERO}}} {{{B_HID_UID_WD_SCALE_STATUS_STABLE_AT_CENTER_OF_ZERO}}} {{{USB_HID_UID_WD_SCALE_STATUS_STABLE_AT_CENTER_OF_ZERO}}} Even without the {{{USB_}}} there is a bunch of prefixes and I would try to keep the prefixes smaller than the name though :-) Are there more points of view? -- Ticket URL: <http://dev.haiku-os.org/ticket/6115#comment:8> Haiku <http://dev.haiku-os.org> Haiku - the operating system.