]> sigrok.org Git - libsigrok.git/commitdiff
Add a per-instance pointer storage for hardware plugins.
authorDaniel Ribeiro <redacted>
Sun, 9 Jan 2011 05:50:45 +0000 (03:50 -0200)
committerDaniel Ribeiro <redacted>
Sun, 9 Jan 2011 05:50:45 +0000 (03:50 -0200)
We need this to properly support more than one device connected
at the same time.

sigrok.h

index 16a415704b51aa453854c2544c64cd4ee96c13c2..ddfa4034848e7078c7589a8e665a7a4af40c59de 100644 (file)
--- a/sigrok.h
+++ b/sigrok.h
@@ -269,6 +269,7 @@ struct sigrok_device_instance {
        char *vendor;
        char *model;
        char *version;
+       void *priv;
        union {
                struct usb_device_instance *usb;
                struct serial_device_instance *serial;