]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.h
fx2lafw: use driver-private storage for instances and libusb_context
[libsigrok.git] / hardware / fx2lafw / fx2lafw.h
index ae3ed1bc31753664ed9b8e345447ad56468db799..6f6e967e8e875dcdefea3f8ae6b8303dfa97398f 100644 (file)
@@ -60,7 +60,12 @@ struct fx2lafw_profile {
        uint32_t dev_caps;
 };
 
-struct context {
+struct drv_context {
+       libusb_context *usb_context;
+       GSList *instances;
+};
+
+struct dev_context {
        const struct fx2lafw_profile *profile;
 
        /*