diff options
author | ManikandanChockalingam <manikandan.chockalingam@in.bosch.com> | 2018-11-15 13:52:21 +0100 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-11-15 13:52:21 +0100 |
commit | 3cfb292aa43774428ce8dfe120fe16785942b086 (patch) | |
tree | 00841761981aead232f5e6995eefde6babaddeb4 /src/daemon/dlt_daemon_offline_logstorage.h | |
parent | 6cbaa4fd39fb584a227b8eb7a3331dcfce54d9a3 (diff) | |
download | DLT-daemon-3cfb292aa43774428ce8dfe120fe16785942b086.tar.gz |
Log storage - Updates (#82)
- improvements and refactor key creation
- Sync strategies added
Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com>
Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Signed-off-by: S. Hameed <shameed@jp.adit-jv.com>
Signed-off-by: Ravi Sankar P <ponnurangamravi.sankar@in.bosch.com>
Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com>
Diffstat (limited to 'src/daemon/dlt_daemon_offline_logstorage.h')
-rw-r--r-- | src/daemon/dlt_daemon_offline_logstorage.h | 121 |
1 files changed, 71 insertions, 50 deletions
diff --git a/src/daemon/dlt_daemon_offline_logstorage.h b/src/daemon/dlt_daemon_offline_logstorage.h index 3ab092a..f9d587d 100644 --- a/src/daemon/dlt_daemon_offline_logstorage.h +++ b/src/daemon/dlt_daemon_offline_logstorage.h @@ -1,44 +1,44 @@ /** -* @licence app begin@ -* Copyright (C) 2013 - 2015 Advanced Driver Information Technology. -* This code is developed by Advanced Driver Information Technology. -* Copyright of Advanced Driver Information Technology, Bosch and DENSO. -* -* DLT offline log storage functionality header file. -* -* \copyright -* This Source Code Form is subject to the terms of the -* Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with -* this file, You can obtain one at http://mozilla.org/MPL/2.0/. -* -* -* \author Syed Hameed <shameed@jp.adit-jv.com> ADIT 2013 - 2015 -* \author Christoph Lipka <clipka@jp.adit-jv.com> ADIT 2015 -* -* \file: dlt_daemon_offline_logstorage.h -* For further information see http://www.genivi.org/. -* @licence end@ -*/ + * @licence app begin@ + * Copyright (C) 2013 - 2015 Advanced Driver Information Technology. + * This code is developed by Advanced Driver Information Technology. + * Copyright of Advanced Driver Information Technology, Bosch and DENSO. + * + * DLT offline log storage functionality header file. + * + * \copyright + * This Source Code Form is subject to the terms of the + * Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with + * this file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * + * \author Syed Hameed <shameed@jp.adit-jv.com> ADIT 2013 - 2015 + * \author Christoph Lipka <clipka@jp.adit-jv.com> ADIT 2015 + * + * \file: dlt_daemon_offline_logstorage.h + * For further information see http://www.genivi.org/. + * @licence end@ + */ /******************************************************************************* -* ** -* SRC-MODULE: dlt_daemon_offline_logstorage.h ** -* ** -* TARGET : linux ** -* ** -* PROJECT : DLT ** -* ** -* AUTHOR : Syed Hameed shameed@jp.adit-jv.com ** -* Christoph Lipka clipka@jp.adit-jv.com ** -* PURPOSE : ** -* ** -* REMARKS : ** -* ** -* PLATFORM DEPENDANT [yes/no]: yes ** -* ** -* TO BE CHANGED BY USER [yes/no]: no ** -* ** -******************************************************************************/ + * ** + * SRC-MODULE: dlt_daemon_offline_logstorage.h ** + * ** + * TARGET : linux ** + * ** + * PROJECT : DLT ** + * ** + * AUTHOR : Syed Hameed shameed@jp.adit-jv.com ** + * Christoph Lipka clipka@jp.adit-jv.com ** + * PURPOSE : ** + * ** + * REMARKS : ** + * ** + * PLATFORM DEPENDANT [yes/no]: yes ** + * ** + * TO BE CHANGED BY USER [yes/no]: no ** + * ** + ******************************************************************************/ /******************************************************************************* * Author Identity ** @@ -48,7 +48,7 @@ * -------- ------------------------- ---------------------------------- ** * sh Syed Hameed ADIT ** * cl Christoph Lipka ADIT ** - *******************************************************************************/ +*******************************************************************************/ #ifndef DLT_DAEMON_OFFLINE_LOGSTORAGE_H #define DLT_DAEMON_OFFLINE_LOGSTORAGE_H @@ -60,11 +60,14 @@ #define DLT_DAEMON_LOGSTORAGE_RESET_LOGLEVEL -1 #define DLT_DAEMON_LOGSTORAGE_RESET_SEND_LOGLEVEL 0 +#define DLT_DAEMON_LOGSTORAGE_CMP_APID 1 +#define DLT_DAEMON_LOGSTORAGE_CMP_CTID 2 + /** * dlt_daemon_logstorage_get_loglevel * - * Obtain log level as a union of all configured storage devices and filters for the - * provided application id and context id + * Obtain log level as a union of all configured storage devices and filters for + * the provided application id and context id * * @param daemon Pointer to DLT Daemon structure * @param max_device Maximum storage devices setup by the daemon @@ -72,35 +75,49 @@ * @param ctid Context ID * @return Log level on success, -1 on error */ -int dlt_daemon_logstorage_get_loglevel(DltDaemon *daemon, int max_device, char *apid, char *ctid); +int dlt_daemon_logstorage_get_loglevel(DltDaemon *daemon, + int max_device, + char *apid, + char *ctid); /** * dlt_daemon_logstorage_reset_application_loglevel * * Reset storage log level of all running applications with -1 * * @param daemon Pointer to DLT Daemon structure + * @param daemon_local Pointer to DLT Daemon local structure * @param dev_num Number of attached DLT Logstorage device * @param verbose If set to true verbose information is printed out */ -void dlt_daemon_logstorage_reset_application_loglevel(DltDaemon *daemon, int dev_num, int max_device, int verbose); +void dlt_daemon_logstorage_reset_application_loglevel(DltDaemon *daemon, + DltDaemonLocal *daemon_local, + int dev_num, + int max_device, + int verbose); /** * dlt_daemon_logstorage_update_application_loglevel * - * Update log level of all running applications with new filter configuration available due - * to newly attached DltLogstorage device. The log level is only updated when the current - * application log level is less than the log level obtained from the storage configuration file + * Update log level of all running applications with new filter configuration + * available due to newly attached DltLogstorage device. The log level is only + * updated when the current application log level is less than the log level + * obtained from the storage configuration file. * * @param daemon Pointer to DLT Daemon structure + * @param daemon_local Pointer to DLT Daemon local structure * @param dev_num Number of attached DLT Logstorage device * @param verbose if set to true verbose information is printed out */ -void dlt_daemon_logstorage_update_application_loglevel(DltDaemon *daemon, int dev_num, int verbose); +void dlt_daemon_logstorage_update_application_loglevel(DltDaemon *daemon, + DltDaemonLocal *daemon_local, + int dev_num, + int verbose); /** * dlt_daemon_logstorage_write * - * Write log message to all attached storage device. If the called dlt_logstorage_write function is not able - * to write to the device, DltDaemon will disconnect this device. + * Write log message to all attached storage device. If the called + * dlt_logstorage_write function is not able to write to the device, + * DltDaemon will disconnect this device. * * @param daemon Pointer to Dlt Daemon structure * @param user_config DltDaemon configuration @@ -127,10 +144,14 @@ void dlt_daemon_logstorage_write(DltDaemon *daemon, * Setup user defined path as offline log storage device * * @param daemon Pointer to Dlt Daemon structure + * @param daemon_local Pointer to Dlt Daemon Local 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); +int dlt_daemon_logstorage_setup_internal_storage(DltDaemon *daemon, + DltDaemonLocal *daemon_local, + char *path, + int verbose); /** * Set max size of logstorage cache. Stored internally in bytes |