diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2011-10-11 13:09:24 +0200 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2011-10-11 13:09:24 +0200 |
commit | 9585f876733b62fb29aaeb163f0f8c408765c9e3 (patch) | |
tree | fefb56af129e938776002623e89dffd23784deeb /src/shared | |
parent | 95d606145751f160505660888e334518c0802470 (diff) | |
download | DLT-daemon-9585f876733b62fb29aaeb163f0f8c408765c9e3.tar.gz |
Added new API dlt_set_log_mode to enable/disable internal/external trace.
Diffstat (limited to 'src/shared')
-rwxr-xr-x | src/shared/dlt_user_shared.h | 17 | ||||
-rwxr-xr-x | src/shared/dlt_user_shared_cfg.h | 3 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/shared/dlt_user_shared.h b/src/shared/dlt_user_shared.h index a9d1628..a29a045 100755 --- a/src/shared/dlt_user_shared.h +++ b/src/shared/dlt_user_shared.h @@ -179,6 +179,23 @@ typedef struct uint8_t trace_status; /**< trace status */
} PACKED DltUserControlMsgAppLogLevelTraceStatus;
+/**
+ * This is the internal message content to set the logging mode: off, external, internal, both.
+ */
+typedef struct
+{
+ uint8_t log_mode; /**< the mode to be used for logging: off, external, internal, both */
+} PACKED DltUserControlMsgLogMode;
+
+/**
+ * This is the internal message content to get the logging state, broadcast to each application,
+ * when client connects or disconnects.
+ */
+typedef struct
+{
+ uint8_t log_state; /**< the mode to be used for logging: off, on */
+} PACKED DltUserControlMsgLogState;
+
/**************************************************************************************************
* The folowing functions are used shared between the user lib and the daemon implementation
**************************************************************************************************/
diff --git a/src/shared/dlt_user_shared_cfg.h b/src/shared/dlt_user_shared_cfg.h index 08f919c..b784566 100755 --- a/src/shared/dlt_user_shared_cfg.h +++ b/src/shared/dlt_user_shared_cfg.h @@ -104,6 +104,9 @@ #define DLT_USER_MESSAGE_INJECTION 7
#define DLT_USER_MESSAGE_OVERFLOW 8
#define DLT_USER_MESSAGE_APP_LL_TS 9
+#define DLT_USER_MESSAGE_LOG_SHM 10
+#define DLT_USER_MESSAGE_LOG_MODE 11
+#define DLT_USER_MESSAGE_LOG_STATE 12
/* Internal defined values */ |