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:
Bert Vermeulen 2012-07-08 16:40:54 +02:00
parent 47211d65b4
commit dd34b8d3c4
1 changed files with 3 additions and 0 deletions

View File

@ -490,6 +490,9 @@ struct sr_dev_driver {
int (*dev_config_set) (int dev_index, int hwcap, const void *value); 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_start) (int dev_index, void *session_dev_id);
int (*dev_acquisition_stop) (int dev_index, void *session_dev_id); int (*dev_acquisition_stop) (int dev_index, void *session_dev_id);
/* Dynamic */
GSList *instances;
}; };
struct sr_session { struct sr_session {