]> sigrok.org Git - libsigrok.git/commitdiff
sr: driver struct gets a more generic *priv instead of GSList *instances
authorBert Vermeulen <redacted>
Sun, 29 Jul 2012 22:22:26 +0000 (00:22 +0200)
committerBert Vermeulen <redacted>
Fri, 3 Aug 2012 09:29:00 +0000 (11:29 +0200)
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.

libsigrok.h

index 31a38c80fd6906e3f9c4b3408e4130f927632a4b..eda16c211eee4b723cb527a680ffe90b5ed6f885 100644 (file)
@@ -500,7 +500,7 @@ struct sr_dev_driver {
                        void *cb_data);
 
        /* Dynamic */
-       GSList *instances;
+       void *priv;
 };
 
 struct sr_session {