+ for (GSList *p = _decoder->probes; p; p = p->next) {
+ const srd_probe *const probe = (const srd_probe*)p->data;
+ assert(probe);
+ if (_probes.find(probe) == _probes.end())
+ return false;
+ }
+
+ return true;
+}
+
+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 (map<string, GVariant*>::const_iterator i = _options.begin();
+ i != _options.end(); i++)
+ {
+ GVariant *const value = (*i).second;
+ g_variant_ref(value);
+ g_hash_table_replace(opt_hash, (void*)g_strdup(
+ (*i).first.c_str()), value);
+ }
+