return true;
}
-srd_decoder_inst* Decoder::create_decoder_inst(
- srd_session *const session) const
+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);
g_hash_table_insert(probes, (*i).first->id, gvar);
}
- srd_inst_probe_set_all(decoder_inst, probes);
+ srd_inst_probe_set_all(decoder_inst, probes, unit_size);
return decoder_inst;
}
bool have_required_probes() const;
srd_decoder_inst* create_decoder_inst(
- srd_session *const session) const;
+ srd_session *session, int unit_size) const;
private:
const srd_decoder *const _decoder;
// Create the decoders
BOOST_FOREACH(const shared_ptr<decode::Decoder> &dec, _stack)
{
- srd_decoder_inst *const di = dec->create_decoder_inst(session);
+ srd_decoder_inst *const di = dec->create_decoder_inst(session, unit_size);
if (!di)
{