]> git.zerfleddert.de Git - usb-driver/blobdiff - xpcu.h
move interrupt functions to xpcu.c
[usb-driver] / xpcu.h
diff --git a/xpcu.h b/xpcu.h
index c189d82f7c3fe377c393fdaa04e96914d4979a76..cde14214a2ce63e08a43dbe550fdddda0b4d740d 100644 (file)
--- a/xpcu.h
+++ b/xpcu.h
@@ -1,12 +1,16 @@
 #define XPCU_CLAIM     1
 #define XPCU_RELEASE   0
 
+#define ENABLE_INTERRUPT       1
+#define DISABLE_INTERRUPT      0
+
 struct xpcu_s {
        struct usb_device *dev;
        usb_dev_handle *handle;
        int interface;
        int alternate;
        unsigned long card_type;
+       pthread_mutex_t interrupt;
 };
 
 int __attribute__ ((visibility ("hidden"))) xpcu_deviceinfo(struct xpcu_s *xpcu, struct usb_get_device_data *ugdd);
@@ -15,3 +19,5 @@ void __attribute__ ((visibility ("hidden"))) xpcu_set_interface(struct xpcu_s *x
 struct xpcu_s __attribute__ ((visibility ("hidden"))) *xpcu_find(struct event *e);
 void __attribute__ ((visibility ("hidden"))) xpcu_found(struct xpcu_s *xpcu, struct event *e);
 void __attribute__ ((visibility ("hidden"))) xpcu_close(struct xpcu_s *xpcu, struct event *e);
+void __attribute__ ((visibility ("hidden"))) xpcu_int_state(struct xpcu_s *xpcu, struct interrupt *it, int enable);
+void __attribute__ ((visibility ("hidden"))) xpcu_int_wait(struct xpcu_s *xpcu, struct interrupt *it);
Impressum, Datenschutz