From b76a9ce272a9f4447e7cdff45bf6634b3ce4c4b9 Mon Sep 17 00:00:00 2001 From: Bui Nguyen Quoc Thanh Date: Fri, 3 Jul 2020 16:15:59 +0700 Subject: libdlt: disable injection msg via env var In order to disable injection message at dlt user, set DLT_DISABLE_INJECTION_MSG_AT_USER to any value. When injection message is disabled, libdlt won't poll any data from receiver. It means libdlt will ignore all data/messages from dlt-daemon. By default, variable is unset so that dlt users are able to handle data/messages from dlt-daemon. Signed-off-by: Bui Nguyen Quoc Thanh --- include/dlt/dlt_user.h.in | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/dlt/dlt_user.h.in b/include/dlt/dlt_user.h.in index 473575b..d0c60b2 100644 --- a/include/dlt/dlt_user.h.in +++ b/include/dlt/dlt_user.h.in @@ -232,6 +232,7 @@ typedef struct int8_t enable_local_print; /**< Local printing of log messages: 1 enabled, 0 disabled */ int8_t local_print_mode; /**< Local print mode, controlled by environment variable */ + int8_t disable_injection_msg; /**< Injection msg availability: 1 disabled, 0 enabled (default) */ int8_t log_state; /**< Log state of external connection: * 1 client connected, -- cgit v1.2.1