From: Bert Vermeulen Date: Sun, 8 Jul 2012 14:40:54 +0000 (+0200) Subject: sr: add GSList of instances to the driver struct X-Git-Tag: dsupstream~842 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=dd34b8d3c4da18f8cf339c5bb8f0d6268f3d13f6;p=libsigrok.git sr: add GSList of instances to the driver struct This gives the driver a private place to keep its instances, without polluting the global namespace. --- diff --git a/libsigrok.h b/libsigrok.h index 42406d54..2b07236a 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -490,6 +490,9 @@ struct sr_dev_driver { int (*dev_config_set) (int dev_index, int hwcap, const void *value); int (*dev_acquisition_start) (int dev_index, void *session_dev_id); int (*dev_acquisition_stop) (int dev_index, void *session_dev_id); + + /* Dynamic */ + GSList *instances; }; struct sr_session {