X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fdevice%2Fdevinst.cpp;h=4543e5c81d8dba5cf212918bdb31cfa199e6476d;hb=1cd4be221d31680c42c4385e6861e1cf3afafa6a;hp=86595ae79069a9c7e2b9e33700e1c5eee7be8661;hpb=ae2d1bc5b5aba9fcdd7fef42ef1bc9069267d6f7;p=pulseview.git diff --git a/pv/device/devinst.cpp b/pv/device/devinst.cpp index 86595ae7..4543e5c8 100644 --- a/pv/device/devinst.cpp +++ b/pv/device/devinst.cpp @@ -56,7 +56,7 @@ SigSession* DevInst::owner() const 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); @@ -67,7 +67,7 @@ GVariant* DevInst::get_config(const sr_probe_group *group, int key) 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(); @@ -79,7 +79,7 @@ bool DevInst::set_config(const sr_probe_group *group, int key, GVariant *data) 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); @@ -90,14 +90,14 @@ GVariant* DevInst::list_config(const sr_probe_group *group, int key) 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(probe)->enabled = enable; + const_cast(probe)->enabled = enable; config_changed(); return; }