[haiku-bugs] Re: [Haiku] #6115: Extension of the USB HID Usages

  • From: "phoudoin" <trac@xxxxxxxxxxxx>
  • Date: Wed, 02 Jun 2010 14:02:18 -0000

#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 phoudoin):

 Replying to [comment:6 axeld]:
 > Great! I would be all for adding the "B_" prefix now, too.

 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.

 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_*).

 Anyway, if you choose to prefix all USB constants, there is several others
 USB_*.h and components including them to fix too for consistency.

 To be short:
  1. I'm against prefixing with B_,
  2. but I'm for always prefixing with '''US'''B_

 ;-)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6115#comment:7>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: