From 8ed28dc15429a736c8404d491ed73fd0b04235e2 Mon Sep 17 00:00:00 2001 From: "S. Hameed" Date: Wed, 5 Aug 2015 15:22:20 +0900 Subject: Offline logstorage: Offline logstorage feature Features: 1. Offline log storage to internal and external devices (PATH based trigger) 2. File options configurable in dlt.conf a : Appends timestamp in log file name (OfflineLogstorageTimestamp) b : Appends delimiter in log file name (OfflineLogstorageDelimiter) c : Wrap around value for log file count in file name (OfflineLogstorageMaxCounter) 3. Common config file parser support Signed-off-by: S. Hameed Signed-off-by: Christoph Lipka --- include/dlt/dlt_common.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index 4b7f45f..2083a18 100644 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -321,6 +321,11 @@ enum { #define DLT_HEADER_SHOW_NOARG 0x0200 #define DLT_HEADER_SHOW_ALL 0xFFFF +/** + * Maximal length of mounted path + */ +#define DLT_MOUNT_PATH_MAX 1024 + /** * The definition of the serial header containing the characters "DLS" + 0x01. */ @@ -553,10 +558,10 @@ typedef struct */ typedef struct { - uint32_t service_id; /**< service ID */ - uint8_t dev_num; /**< device number of the connected device */ - uint8_t connection_type; /**< connection status of the connected device connected/disconnected */ - char comid[DLT_ID_SIZE]; /**< communication interface */ + uint32_t service_id; /**< service ID */ + char mount_point[DLT_MOUNT_PATH_MAX]; /**< storage device mount point */ + uint8_t connection_type; /**< connection status of the connected device connected/disconnected */ + char comid[DLT_ID_SIZE]; /**< communication interface */ } PACKED DltServiceOfflineLogstorage; /** -- cgit v1.2.1