return _owner;
}
-GVariant* DevInst::get_config(const sr_probe_group *group, int key)
+GVariant* DevInst::get_config(const sr_channel_group *group, int key)
{
GVariant *data = NULL;
assert(_owner);
return data;
}
-bool DevInst::set_config(const sr_probe_group *group, int key, GVariant *data)
+bool DevInst::set_config(const sr_channel_group *group, int key, GVariant *data)
{
assert(_owner);
sr_dev_inst *const sdi = dev_inst();
return false;
}
-GVariant* DevInst::list_config(const sr_probe_group *group, int key)
+GVariant* DevInst::list_config(const sr_channel_group *group, int key)
{
GVariant *data = NULL;
assert(_owner);
return data;
}
-void DevInst::enable_probe(const sr_probe *probe, bool enable)
+void DevInst::enable_probe(const sr_channel *probe, bool enable)
{
assert(_owner);
sr_dev_inst *const sdi = dev_inst();
assert(sdi);
- for (const GSList *p = sdi->probes; p; p = p->next)
+ for (const GSList *p = sdi->channels; p; p = p->next)
if (probe == p->data) {
- const_cast<sr_probe*>(probe)->enabled = enable;
+ const_cast<sr_channel*>(probe)->enabled = enable;
config_changed();
return;
}
void DevInst::start()
{
- if (sr_session_start() != SR_OK)
+ if (sr_session_start(SigSession::_sr_session) != SR_OK)
throw tr("Failed to start session.");
}
void DevInst::run()
{
- sr_session_run();
+ sr_session_run(SigSession::_sr_session);
}
} // device