diff options
Diffstat (limited to 'include/dlt/dlt_user_macros.h')
-rw-r--r-- | include/dlt/dlt_user_macros.h | 8 |
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 |