summaryrefslogtreecommitdiff
path: root/sigrokdecode.h
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-31 23:48:10 +0100
committerBert Vermeulen <bert@biot.com>2012-01-31 23:48:10 +0100
commitfa12a21e3c779df4e33dcfe394e2ded3f96028ce (patch)
treec3c26fc8dfb6a5670045389de80662f28982f3ee /sigrokdecode.h
parentdbeaab27a4537863a5d7a8180af2de57ba55f1d4 (diff)
downloadlibsigrokdecode-fa12a21e3c779df4e33dcfe394e2ded3f96028ce.tar.gz
libsigrokdecode-fa12a21e3c779df4e33dcfe394e2ded3f96028ce.zip
srd: free all decoder instances when unloading decoders
Diffstat (limited to 'sigrokdecode.h')
-rw-r--r--sigrokdecode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sigrokdecode.h b/sigrokdecode.h
index 2c9cb40..201aea4 100644
--- a/sigrokdecode.h
+++ b/sigrokdecode.h
@@ -192,6 +192,8 @@ struct srd_decoder_instance *srd_instance_find_by_obj(GSList *stack,
int srd_instance_start(struct srd_decoder_instance *di, PyObject *args);
int srd_instance_decode(uint64_t start_samplenum,
struct srd_decoder_instance *dec, uint8_t *inbuf, uint64_t inbuflen);
+void srd_instance_free(struct srd_decoder_instance *di);
+void srd_instance_free_all(GSList *stack);
int srd_session_start(int num_probes, int unitsize, uint64_t samplerate);
int srd_session_feed(uint64_t start_samplenum, uint8_t *inbuf, uint64_t inbuflen);
int pd_add(struct srd_decoder_instance *di, int output_type, char *output_id);