diff options
author | Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com> | 2020-07-03 16:15:59 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-01-06 09:27:28 +0900 |
commit | b76a9ce272a9f4447e7cdff45bf6634b3ce4c4b9 (patch) | |
tree | 4188e0fe9248c63a4aa981b7f4e1befc68bd2feb /src/lib/dlt_user_cfg.h | |
parent | 88fe2fda4aadde540f860ef1255781eb3674454e (diff) | |
download | DLT-daemon-b76a9ce272a9f4447e7cdff45bf6634b3ce4c4b9.tar.gz |
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 <thanh.buinguyenquoc@vn.bosch.com>
Diffstat (limited to 'src/lib/dlt_user_cfg.h')
-rw-r--r-- | src/lib/dlt_user_cfg.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/dlt_user_cfg.h b/src/lib/dlt_user_cfg.h index e8997f0..93d3206 100644 --- a/src/lib/dlt_user_cfg.h +++ b/src/lib/dlt_user_cfg.h @@ -157,6 +157,9 @@ typedef enum /* Maximum msg size as per autosar standard */ #define DLT_LOG_MSG_BUF_MAX_SIZE 65535 +/* Name of environment variable for disabling the injection message at libdlt */ +#define DLT_USER_ENV_DISABLE_INJECTION_MSG "DLT_DISABLE_INJECTION_MSG_AT_USER" + /************************/ /* Don't change please! */ /************************/ |