* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <libsigrok/libsigrok.h>
#include <libsigrokdecode/libsigrokdecode.h>
#include "decoder.h"
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;
}