summaryrefslogtreecommitdiff
path: root/libsigrokdecode-internal.h
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2017-12-17 18:55:46 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2018-03-31 20:44:21 +0200
commit9553e9622bb26dfbe6296ef6f330b1cf0f5b40e6 (patch)
tree54229df143c86283ff1aca2db86ae337d9b6413e /libsigrokdecode-internal.h
parent7d82e3c1ec96ac8a9ef358de1e9c87715dcb8f43 (diff)
downloadlibsigrokdecode-9553e9622bb26dfbe6296ef6f330b1cf0f5b40e6.tar.gz
libsigrokdecode-9553e9622bb26dfbe6296ef6f330b1cf0f5b40e6.zip
session: add "terminate and reset" support for protocol stacks
Implement routines which terminate currently pending decoder operations and reset internal state (on the C and Python sides) for instances as well as sessions. This allows to re-use previously created stacks for new input data.
Diffstat (limited to 'libsigrokdecode-internal.h')
-rw-r--r--libsigrokdecode-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsigrokdecode-internal.h b/libsigrokdecode-internal.h
index eb79287..6fb590c 100644
--- a/libsigrokdecode-internal.h
+++ b/libsigrokdecode-internal.h
@@ -84,6 +84,7 @@ SRD_PRIV int srd_inst_decode(struct srd_decoder_inst *di,
uint64_t abs_start_samplenum, uint64_t abs_end_samplenum,
const uint8_t *inbuf, uint64_t inbuflen, uint64_t unitsize);
SRD_PRIV int process_samples_until_condition_match(struct srd_decoder_inst *di, gboolean *found_match);
+SRD_PRIV int srd_inst_terminate_reset(struct srd_decoder_inst *di);
SRD_PRIV void srd_inst_free(struct srd_decoder_inst *di);
SRD_PRIV void srd_inst_free_all(struct srd_session *sess);