diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2017-12-17 18:55:46 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-03-31 20:44:21 +0200 |
commit | 9553e9622bb26dfbe6296ef6f330b1cf0f5b40e6 (patch) | |
tree | 54229df143c86283ff1aca2db86ae337d9b6413e /libsigrokdecode.h | |
parent | 7d82e3c1ec96ac8a9ef358de1e9c87715dcb8f43 (diff) | |
download | libsigrokdecode-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.h')
-rw-r--r-- | libsigrokdecode.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsigrokdecode.h b/libsigrokdecode.h index 982ae19..ee610c9 100644 --- a/libsigrokdecode.h +++ b/libsigrokdecode.h @@ -330,6 +330,7 @@ SRD_API int srd_session_metadata_set(struct srd_session *sess, int key, SRD_API int srd_session_send(struct srd_session *sess, uint64_t abs_start_samplenum, uint64_t abs_end_samplenum, const uint8_t *inbuf, uint64_t inbuflen, uint64_t unitsize); +SRD_API int srd_session_terminate_reset(struct srd_session *sess); SRD_API int srd_session_destroy(struct srd_session *sess); SRD_API int srd_pd_output_callback_add(struct srd_session *sess, int output_type, srd_pd_output_callback cb, void *cb_data); |