usb.h   usb.h 
#ifndef __USB_H__ #ifndef __USB_H__
#define __USB_H__ #define __USB_H__
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <limits.h>
#include <dirent.h>
/* /*
* USB spec information * USB spec information
* *
* This is all stuff grabbed from various USB specs and is pretty much * This is all stuff grabbed from various USB specs and is pretty much
* not subject to change * not subject to change
*/ */
/* /*
* Device and/or Interface Class codes * Device and/or Interface Class codes
skipping to change at line 168 skipping to change at line 171
/* Error codes */ /* Error codes */
#define USB_ERROR_BEGIN 500000 #define USB_ERROR_BEGIN 500000
/* Data types */ /* Data types */
struct usb_device; struct usb_device;
struct usb_bus; struct usb_bus;
struct usb_device { struct usb_device {
struct usb_device *next, *prev; struct usb_device *next, *prev;
int devicenum; 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;
}; };
struct usb_bus { struct usb_bus {
struct usb_bus *next, *prev; struct usb_bus *next, *prev;
int busnum; char dirname[PATH_MAX + 1];
struct usb_device *devices; struct usb_device *devices;
}; };
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;
skipping to change at line 201 skipping to change at line 204
usb_dev_handle *usb_open(struct usb_device *dev); usb_dev_handle *usb_open(struct usb_device *dev);
int usb_close(usb_dev_handle *dev); int usb_close(usb_dev_handle *dev);
int usb_bulk_write(usb_dev_handle *dev, int ep, char *bytes, int size, int usb_bulk_write(usb_dev_handle *dev, int ep, char *bytes, int size,
int timeout); int timeout);
int usb_bulk_read(usb_dev_handle *dev, int ep, char *bytes, int size, int usb_bulk_read(usb_dev_handle *dev, int ep, char *bytes, int size,
int timeout); int timeout);
int usb_control_msg(usb_dev_handle *dev, int requesttype, int request, int usb_control_msg(usb_dev_handle *dev, int requesttype, int request,
int value, int index, char *bytes, int size, int timeout); int value, int index, char *bytes, int size, int timeout);
int usb_set_configuration(usb_dev_handle *dev, int configuration); int usb_set_configuration(usb_dev_handle *dev, int configuration);
int usb_claim_interface(usb_dev_handle *dev, int interface); int usb_claim_interface(usb_dev_handle *dev, int interface);
int usb_release_interface(usb_dev_handle *dev, int interface);
int usb_set_altinterface(usb_dev_handle *dev, int alternate); int usb_set_altinterface(usb_dev_handle *dev, int alternate);
int usb_resetep(usb_dev_handle *dev, unsigned int ep);
int usb_clear_halt(usb_dev_handle *dev, unsigned int ep);
int usb_reset(usb_dev_handle *dev);
char *usb_strerror(void); char *usb_strerror(void);
void usb_init(void); void usb_init(void);
void usb_set_debug(int level); void usb_set_debug(int level);
int usb_find_busses(void); int usb_find_busses(void);
int usb_find_devices(void); int usb_find_devices(void);
struct usb_device *usb_device(usb_dev_handle *dev); struct usb_device *usb_device(usb_dev_handle *dev);
#endif __USB_H__ #endif __USB_H__
 End of changes. 5 change blocks. 
2 lines changed or deleted 9 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/