]> git.zerfleddert.de Git - usb-driver/blame - xpcu.h
make it possible to return an error everywhere
[usb-driver] / xpcu.h
CommitLineData
cbfa0ac6
MG
1#define XPCU_CLAIM 1
2#define XPCU_RELEASE 0
3
501f1c21
MG
4#define ENABLE_INTERRUPT 1
5#define DISABLE_INTERRUPT 0
6
cbfa0ac6
MG
7struct xpcu_s {
8 struct usb_device *dev;
9 usb_dev_handle *handle;
cbfa0ac6
MG
10 int interface;
11 int alternate;
4f347185 12 unsigned long card_type;
501f1c21 13 pthread_mutex_t interrupt;
cbfa0ac6
MG
14};
15
f92c0fbc 16int __attribute__ ((visibility ("hidden"))) xpcu_deviceinfo(struct xpcu_s *xpcu, struct usb_get_device_data *ugdd);
6c235d59 17int __attribute__ ((visibility ("hidden"))) xpcu_transfer(struct xpcu_s *xpcu, struct usb_transfer *ut);
8af4d910 18int __attribute__ ((visibility ("hidden"))) xpcu_set_interface(struct xpcu_s *xpcu, struct usb_set_interface *usi);
f92c0fbc 19struct xpcu_s __attribute__ ((visibility ("hidden"))) *xpcu_find(struct event *e);
8af4d910
MG
20int __attribute__ ((visibility ("hidden"))) xpcu_found(struct xpcu_s *xpcu, struct event *e);
21int __attribute__ ((visibility ("hidden"))) xpcu_close(struct xpcu_s *xpcu, struct event *e);
22int __attribute__ ((visibility ("hidden"))) xpcu_int_state(struct xpcu_s *xpcu, struct interrupt *it, int enable);
23int __attribute__ ((visibility ("hidden"))) xpcu_int_wait(struct xpcu_s *xpcu, struct interrupt *it);
Impressum, Datenschutz