From dd34b8d3c4da18f8cf339c5bb8f0d6268f3d13f6 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 8 Jul 2012 16:40:54 +0200 Subject: [PATCH] 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. --- libsigrok.h | 3 +++ 1 file changed, 3 insertions(+) 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 {