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_offline_logstorage.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/daemon/dlt_daemon_offline_logstorage.h') diff --git a/src/daemon/dlt_daemon_offline_logstorage.h b/src/daemon/dlt_daemon_offline_logstorage.h index 26e5686..621bd59 100644 --- a/src/daemon/dlt_daemon_offline_logstorage.h +++ b/src/daemon/dlt_daemon_offline_logstorage.h @@ -103,7 +103,7 @@ void dlt_daemon_logstorage_update_application_loglevel(DltDaemon *daemon, int de * to write to the device, DltDaemon will disconnect this device. * * @param daemon Pointer to Dlt Daemon structure - * @param max_devices number of configured storage devices + * @param user_config User configurations for log file * @param apid application id * @param ctid context id * @param log_level log level @@ -112,5 +112,18 @@ void dlt_daemon_logstorage_update_application_loglevel(DltDaemon *daemon, int de * @param data2 message data buffer * @param size2 message data size */ -void dlt_daemon_logstorage_write(DltDaemon *daemon, int max_devices, unsigned char *data1, int size1, unsigned char *data2, int size2, unsigned char *data3, int size3); +void dlt_daemon_logstorage_write(DltDaemon *daemon, DltDaemonFlags user_config, unsigned char *data1, + int size1, unsigned char *data2, int size2, + unsigned char *data3, int size3); + +/** + * dlt_daemon_logstorage_setup_internal_storage + * + * Setup user defined path as offline log storage device + * + * @param daemon Pointer to Dlt Daemon structure + * @param path User configured internal storage path + * @param verbose If set to true verbose information is printed out + */ +int dlt_daemon_logstorage_setup_internal_storage(DltDaemon *daemon, char *path, int verbose); #endif /* DLT_DAEMON_OFFLINE_LOGSTORAGE_H */ -- cgit v1.2.1