- const sr_dev_inst *const sdi = _session.get_device();
- if (sr_config_list(sdi->driver, sdi, NULL, SR_CONF_TRIGGER_TYPE,
- &gvar) == SR_OK)
+ boost::shared_ptr<DevInst> dev_inst = _session.get_device();
+ assert(dev_inst);
+
+ if (!(gvar = dev_inst->list_config(NULL, SR_CONF_TRIGGER_TYPE)))