From 9553e9622bb26dfbe6296ef6f330b1cf0f5b40e6 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sun, 17 Dec 2017 18:55:46 +0100 Subject: 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. --- libsigrokdecode.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libsigrokdecode.h') 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); -- cgit v1.2.3-70-g09d2