char *model;
struct dmmchip *chip;
int transport;
+ int poll_timeout;
struct sr_hwopt *defaults_opts;
};
-struct context {
+/* Private driver context. */
+struct drv_context {
+ GSList *instances;
+};
+
+/* Private, per-device-instance driver context. */
+struct dev_context {
struct dev_profile *profile;
uint64_t limit_samples;
uint64_t limit_msec;
GSList *(*scan) (GSList *options);
/* Called whenever a chunk of data arrives. */
- int (*data) (struct sr_dev_inst *sdi, unsigned char *data);
+ int (*data) (struct sr_dev_inst *sdi);
};