QColor(0xEE, 0xEE, 0xEC), // White
};
-LogicSignal::LogicSignal(pv::SigSession &session, sr_probe *const probe,
+LogicSignal::LogicSignal(pv::SigSession &session,
+ shared_ptr<pv::DevInst> dev_inst, sr_probe *const probe,
shared_ptr<data::Logic> data) :
- Signal(session, probe),
+ Signal(session, dev_inst, probe),
_data(data),
_trigger_none(NULL),
_trigger_rising(NULL),
boost::shared_ptr<DevInst> dev_inst = _session.get_device();
assert(dev_inst);
- const sr_dev_inst *const sdi = dev_inst->dev_inst();
- assert(sdi);
-
- if (sr_config_list(sdi->driver, sdi, NULL, SR_CONF_TRIGGER_TYPE,
- &gvar) == SR_OK)
+ if (!(gvar = dev_inst->list_config(NULL, SR_CONF_TRIGGER_TYPE)))
{
const char *const trig_types =
g_variant_get_string(gvar, NULL);