Add a per-instance pointer storage for hardware plugins.
We need this to properly support more than one device connected at the same time.
This commit is contained in:
parent
dfa4b731da
commit
8d67255061
1
sigrok.h
1
sigrok.h
|
@ -269,6 +269,7 @@ struct sigrok_device_instance {
|
||||||
char *vendor;
|
char *vendor;
|
||||||
char *model;
|
char *model;
|
||||||
char *version;
|
char *version;
|
||||||
|
void *priv;
|
||||||
union {
|
union {
|
||||||
struct usb_device_instance *usb;
|
struct usb_device_instance *usb;
|
||||||
struct serial_device_instance *serial;
|
struct serial_device_instance *serial;
|
||||||
|
|
Loading…
Reference in New Issue