return data;
}
-void DevInst::enable_probe(const sr_channel *probe, bool enable)
+void DevInst::enable_channel(const sr_channel *channel, bool enable)
{
assert(_owner);
sr_dev_inst *const sdi = dev_inst();
assert(sdi);
for (const GSList *p = sdi->channels; p; p = p->next)
- if (probe == p->data) {
- const_cast<sr_channel*>(probe)->enabled = enable;
+ if (channel == p->data) {
+ const_cast<sr_channel*>(channel)->enabled = enable;
config_changed();
return;
}
- // Probe was not found in the device
+ // Channel was not found in the device
assert(0);
}
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