usb.h   usb.h 
skipping to change at line 235 skipping to change at line 235
#if 0 #if 0
#define USB_LE16_TO_CPU(x) do { x = ((x & 0xff) << 8) | ((x & 0xff00) >> 8) ; } while(0) #define USB_LE16_TO_CPU(x) do { x = ((x & 0xff) << 8) | ((x & 0xff00) >> 8) ; } while(0)
#else #else
#define USB_LE16_TO_CPU(x) #define USB_LE16_TO_CPU(x)
#endif #endif
/* Data types */ /* Data types */
struct usb_device; struct usb_device;
struct usb_bus; struct usb_bus;
/*
* To maintain compatibility with applications already built with libusb,
* we must only add entries to the end of this structure. NEVER delete or
* move members and only change types if you really know what you're doing.
*/
struct usb_device { struct usb_device {
struct usb_device *next, *prev; struct usb_device *next, *prev;
char filename[PATH_MAX + 1]; char filename[PATH_MAX + 1];
struct usb_bus *bus; struct usb_bus *bus;
struct usb_device_descriptor descriptor; struct usb_device_descriptor descriptor;
struct usb_config_descriptor *config; struct usb_config_descriptor *config;
void *dev; /* Darwin support */ void *dev; /* Darwin support */
u_int8_t devnum;
unsigned char num_children;
struct usb_device **children;
}; };
struct usb_bus { struct usb_bus {
struct usb_bus *next, *prev; struct usb_bus *next, *prev;
char dirname[PATH_MAX + 1]; char dirname[PATH_MAX + 1];
struct usb_device *devices; struct usb_device *devices;
u_int32_t location; u_int32_t location;
struct usb_device *root_dev;
}; };
struct usb_dev_handle; struct usb_dev_handle;
typedef struct usb_dev_handle usb_dev_handle; typedef struct usb_dev_handle usb_dev_handle;
/* Variables */ /* Variables */
extern struct usb_bus *usb_busses; extern struct usb_bus *usb_busses;
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
 End of changes. 3 change blocks. 
0 lines changed or deleted 12 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/