]> sigrok.org Git - libsigrokdecode.git/commit
Support adding multiple instances of a decoder
authorKarl Palsson <redacted>
Mon, 11 Apr 2016 15:25:42 +0000 (17:25 +0200)
committerUwe Hermann <redacted>
Mon, 20 Feb 2017 15:28:27 +0000 (16:28 +0100)
commit3262ef0203e23399f3cab796391da06969c8306b
tree98a46c8eff87242c8cc89870e5008a116d5d23e0
parent1d4fe1c19c0948fb67b4a91495b126a763ea7adb
Support adding multiple instances of a decoder

srd_inst_new() used the decoder ID as the instance ID, preventing the use
of multiple instances of the same decoder in the same session. Simply
append a numerical suffix to later instances to allow more.

Required changes to cleanup to reliably free all memory. Valgrind checked.

This fixes parts of bug #868.

Based on original work by: Soeren Apel <redacted>
Signed-off-by: Karl Palsson <redacted>
decoder.c
instance.c
libsigrokdecode-internal.h
session.c