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.
This commit is contained in:
parent
47211d65b4
commit
dd34b8d3c4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue