From: Bert Vermeulen Date: Sun, 29 Jul 2012 22:22:26 +0000 (+0200) Subject: sr: driver struct gets a more generic *priv instead of GSList *instances X-Git-Tag: dsupstream~751 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c259726a161411a7fe955dd139fce374635ddf7c;p=libsigrok.git sr: driver struct gets a more generic *priv instead of GSList *instances It's up to the driver to keep its GSList of struct sr_dev_inst * in there. Anything else the driver wants to keep driver-global should also go in there, such as libusb_context. --- diff --git a/libsigrok.h b/libsigrok.h index 31a38c80..eda16c21 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -500,7 +500,7 @@ struct sr_dev_driver { void *cb_data); /* Dynamic */ - GSList *instances; + void *priv; }; struct sr_session {