summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_common.h
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2011-10-11 13:09:24 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2011-10-11 13:09:24 +0200
commit9585f876733b62fb29aaeb163f0f8c408765c9e3 (patch)
treefefb56af129e938776002623e89dffd23784deeb /src/daemon/dlt_daemon_common.h
parent95d606145751f160505660888e334518c0802470 (diff)
downloadDLT-daemon-9585f876733b62fb29aaeb163f0f8c408765c9e3.tar.gz
Added new API dlt_set_log_mode to enable/disable internal/external trace.
Diffstat (limited to 'src/daemon/dlt_daemon_common.h')
-rwxr-xr-xsrc/daemon/dlt_daemon_common.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/daemon/dlt_daemon_common.h b/src/daemon/dlt_daemon_common.h
index bdacfd7..1fd3d2e 100755
--- a/src/daemon/dlt_daemon_common.h
+++ b/src/daemon/dlt_daemon_common.h
@@ -90,6 +90,7 @@
#include <semaphore.h>
#include "dlt_common.h"
+#include "dlt_user.h"
#ifdef __cplusplus
extern "C" {
@@ -150,6 +151,8 @@ typedef struct
int timingpackets; /**< 1: send continous timing packets; 0 don't send continous timing packets */
char runtime_application_cfg[256]; /**< Path and filename of persistent application configuration */
char runtime_context_cfg[256]; /**< Path and filename of persistent context configuration */
+ char runtime_configuration[256]; /**< Path and filename of persistent configuration */
+ DltUserLogMode mode; /**< Mode used for tracing: off, external, internal, both */
} DltDaemon;
/**
@@ -273,6 +276,23 @@ int dlt_daemon_contexts_load(DltDaemon *daemon,const char *filename, int verbose
* @return negative value if there was an error
*/
int dlt_daemon_contexts_save(DltDaemon *daemon,const char *filename, int verbose);
+/**
+ * Load persistant configuration
+ * @param daemon pointer to dlt daemon structure
+ * @param filename name of file to be used for loading
+ * @param verbose if set to true verbose information is printed out.
+ * @return negative value if there was an error
+ */
+int dlt_daemon_configuration_load(DltDaemon *daemon,const char *filename, int verbose);
+/**
+ * Save configuration persistantly
+ * @param daemon pointer to dlt daemon structure
+ * @param filename name of file to be used for saving
+ * @param verbose if set to true verbose information is printed out.
+ * @return negative value if there was an error
+ */
+int dlt_daemon_configuration_save(DltDaemon *daemon,const char *filename, int verbose);
+
/**
* Send user message DLT_USER_MESSAGE_LOG_LEVEL to user application