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 --- src/daemon/dlt-daemon.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/daemon/dlt-daemon.h') diff --git a/src/daemon/dlt-daemon.h b/src/daemon/dlt-daemon.h index ab18d1f..503a98f 100644 --- a/src/daemon/dlt-daemon.h +++ b/src/daemon/dlt-daemon.h @@ -79,7 +79,6 @@ #include #include -#include "dlt_daemon_offline_logstorage.h" #define DLT_DAEMON_FLAG_MAX 256 /** @@ -114,6 +113,11 @@ typedef struct char pathToECUSoftwareVersion[DLT_DAEMON_FLAG_MAX]; /**< (String: Filename) The file from which to read the ECU version from. */ int sendTimezone; /**< (Boolean) Send Timezone perdiodically */ int offlineLogstorageMaxDevices; /**< (int) Maximum devices to be used as offline logstorage devices */ + char offlineLogstorageDirPath[DLT_MOUNT_PATH_MAX]; /**< (String: Directory) DIR path to store offline logs */ + int offlineLogstorageTimestamp; /**< (int) Append timestamp in offline logstorage filename */ + char offlineLogstorageDelimiter; /**< (char) Append delimeter character in offline logstorage filename */ + unsigned int offlineLogstorageMaxCounter; /**< (int) Maximum offline logstorage file counter index until wraparound */ + unsigned int offlineLogstorageMaxCounterIdx; /**< (int) String len of offlineLogstorageMaxCounter*/ char userPipesDir[NAME_MAX + 1]; /**< (String: Directory) directory where dltpipes reside (Default: /tmp/dltpipes) */ char daemonFifoName[NAME_MAX + 1]; /**< (String: Filename) name of local fifo (Default: /tmp/dlt) */ unsigned int port; /**< port number */ -- cgit v1.2.1