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:
Daniel Ribeiro 2011-01-09 03:50:45 -02:00
parent dfa4b731da
commit 8d67255061
1 changed files with 1 additions and 0 deletions

View File

@ -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;