From: Gerhard Sittig Date: Sun, 26 Dec 2021 06:49:50 +0000 (+0100) Subject: runtc: optionally send EOF to decoder session X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-test.git;a=commitdiff_plain;h=14e38a009d0ed7c6e3f1cb2f725b0d5f00331638 runtc: optionally send EOF to decoder session Communicate EOF to the decoder session (when the library supports it). --- diff --git a/decoder/runtc.c b/decoder/runtc.c index 90c37b6..896935b 100644 --- a/decoder/runtc.c +++ b/decoder/runtc.c @@ -17,6 +17,8 @@ * along with this program. If not, see . */ +#include + #include #include #include @@ -366,6 +368,9 @@ static void sr_cb(const struct sr_dev_inst *sdi, break; case SR_DF_END: DBG("Received SR_DF_END"); +#if defined HAVE_SRD_SESSION_SEND_EOF && HAVE_SRD_SESSION_SEND_EOF + (void)srd_session_send_eof(sess); +#endif break; }