+ shared_ptr<view::Signal> signal;
+ uint64_t *sample_rate = NULL;
+ unsigned int logic_probe_count = 0;
+ unsigned int analog_probe_count = 0;
+
+ // Detect what data types we will receive
+ for (const GSList *l = sdi->probes; l; l = l->next) {
+ const sr_probe *const probe = (const sr_probe *)l->data;
+ if (!probe->enabled)
+ continue;
+
+ switch(probe->type) {
+ case SR_PROBE_LOGIC:
+ logic_probe_count++;
+ break;
+
+ case SR_PROBE_ANALOG:
+ analog_probe_count++;
+ break;
+ }
+ }
+
+ // Read out the sample rate
+ assert(sdi->driver);
+
+ const int ret = sr_config_get(sdi->driver, SR_CONF_SAMPLERATE,
+ (const void**)&sample_rate, sdi);
+ assert(ret == SR_OK);