+ for (GSList *l = _decoder->channels; l; l = l->next) {
+ const srd_channel *const pdch = (const srd_channel*)l->data;
+ assert(pdch);
+ if (_probes.find(pdch) == _probes.end())
+ return false;
+ }
+
+ return true;
+}
+
+set< shared_ptr<pv::data::Logic> > Decoder::get_data()
+{
+ set< shared_ptr<pv::data::Logic> > data;
+ for(auto i = _probes.cbegin(); i != _probes.cend(); i++) {
+ shared_ptr<view::LogicSignal> signal((*i).second);
+ assert(signal);
+ data.insert(signal->logic_data());
+ }
+
+ return data;
+}
+
+srd_decoder_inst* Decoder::create_decoder_inst(srd_session *session, int unit_size) const
+{
+ GHashTable *const opt_hash = g_hash_table_new_full(g_str_hash,
+ g_str_equal, g_free, (GDestroyNotify)g_variant_unref);
+
+ for (auto i = _options.cbegin(); i != _options.cend(); i++)
+ {
+ GVariant *const value = (*i).second;
+ g_variant_ref(value);
+ g_hash_table_replace(opt_hash, (void*)g_strdup(
+ (*i).first.c_str()), value);
+ }
+