summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_user_macros.h
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2014-07-28 13:33:23 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2014-08-12 10:46:04 +0200
commit87936e5249b2c22eefac0acfc21696e209ee6d35 (patch)
tree1d9c39ff8ab4c101c21ffed1365800e9d58403a7 /include/dlt/dlt_user_macros.h
parent312e8742c7a650a113180bf0564a49de03dc29c8 (diff)
downloadDLT-daemon-87936e5249b2c22eefac0acfc21696e209ee6d35.tar.gz
New Callback function in DLT library, called when log level of context is changed
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'include/dlt/dlt_user_macros.h')
-rw-r--r--include/dlt/dlt_user_macros.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h
index 37a8ccf..8a186ae 100644
--- a/include/dlt/dlt_user_macros.h
+++ b/include/dlt/dlt_user_macros.h
@@ -149,6 +149,14 @@ extern DltContext CONTEXT;
dlt_register_injection_callback(&(CONTEXT),SERVICEID, CALLBACK);} while(0)
/**
+ * Register callback function called when log level of context was changed
+ * @param CONTEXT object containing information about one special logging context
+ * @param CALLBACK function pointer to callback function
+ */
+#define DLT_REGISTER_LOG_LEVEL_CHANGED_CALLBACK(CONTEXT, CALLBACK) do{\
+ dlt_register_log_level_changed_callback(&(CONTEXT),CALLBACK);} while(0)
+
+/**
* Send log message with variable list of messages (intended for verbose mode)
* @param CONTEXT object containing information about one special logging context
* @param LOGLEVEL the log level of the log message