]> sigrok.org Git - pulseview.git/commitdiff
Pass new unit_size argument to srd_inst_probe_set_all()
authorDaniel Elstner <redacted>
Thu, 20 Feb 2014 05:33:21 +0000 (06:33 +0100)
committerDaniel Elstner <redacted>
Thu, 20 Feb 2014 20:17:44 +0000 (21:17 +0100)
pv/data/decode/decoder.cpp
pv/data/decode/decoder.h
pv/data/decoderstack.cpp

index b293cacb010790c61f46edef34c7f81f0306abfe..8cde226da847327395bcb306e2cc28c4b0d6b0b0 100644 (file)
@@ -97,8 +97,7 @@ bool Decoder::have_required_probes() const
        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);
@@ -134,7 +133,7 @@ srd_decoder_inst* Decoder::create_decoder_inst(
                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;
 }
index 087955853ca3f6ad719c6f7063193c20a682b66a..d8ed469203cf804ac1c2eabc215b80a1d024c993 100644 (file)
@@ -65,7 +65,7 @@ public:
        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;
index e667693e65dde4ec70bb77bd8fef3c980178807b..9b02f9e929cc41b9ca75709acc27f3793745c333 100644 (file)
@@ -271,7 +271,7 @@ void DecoderStack::decode_proc(shared_ptr<data::Logic> data)
        // 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)
                {