20 #ifndef OPENCBM_LIBMISC_DYNLIBUSB_H
21 #define OPENCBM_LIBMISC_DYNLIBUSB_H
27 #ifndef LIBUSB_APIDECL
28 # define LIBUSB_APIDECL
40 usb_dev_handle * (LIBUSB_APIDECL *open)(
struct usb_device *dev);
41 int (LIBUSB_APIDECL *close)(usb_dev_handle *dev);
48 int (LIBUSB_APIDECL *bulk_write)(usb_dev_handle *dev,
int ep,
const char *bytes,
int size,
int timeout);
49 int (LIBUSB_APIDECL *bulk_read)(usb_dev_handle *dev,
int ep,
char *bytes,
int size,
int timeout);
52 int (LIBUSB_APIDECL *control_msg)(usb_dev_handle *dev,
int requesttype,
int request,
int value,
int index,
char *bytes,
int size,
int timeout);
53 int (LIBUSB_APIDECL *set_configuration)(usb_dev_handle *dev,
int configuration);
54 int (LIBUSB_APIDECL *claim_interface)(usb_dev_handle *dev,
int interface);
55 int (LIBUSB_APIDECL *release_interface)(usb_dev_handle *dev,
int interface);
57 int (LIBUSB_APIDECL *resetep)(usb_dev_handle *dev,
unsigned int ep);
58 int (LIBUSB_APIDECL *clear_halt)(usb_dev_handle *dev,
unsigned int ep);
61 char * (LIBUSB_APIDECL *strerror)(
void);
63 void (LIBUSB_APIDECL *init)(void);
65 int (LIBUSB_APIDECL *find_busses)(void);
66 int (LIBUSB_APIDECL *find_devices)(void);
67 struct usb_device * (LIBUSB_APIDECL *device)(usb_dev_handle *dev);
68 struct usb_bus * (LIBUSB_APIDECL *get_busses)(
void);
74 extern int dynlibusb_init(
void);
75 extern void dynlibusb_uninit(
void);
void * SHARED_OBJECT_HANDLE
@@@
Shared library / DLL for accessing the driver Functions for obtaining the addresses of plugin functio...