summaryrefslogtreecommitdiff
path: root/include/dlt
diff options
context:
space:
mode:
Diffstat (limited to 'include/dlt')
-rw-r--r--include/dlt/dlt_user.h7
-rw-r--r--include/dlt/dlt_user_macros.h7
2 files changed, 14 insertions, 0 deletions
diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h
index 85656d9..69cb854 100644
--- a/include/dlt/dlt_user.h
+++ b/include/dlt/dlt_user.h
@@ -537,6 +537,13 @@ DltReturnValue dlt_unregister_app(void);
DltReturnValue dlt_unregister_app_flush_buffered_logs(void);
/**
+ * Get the application id
+ * @param four byte long character array to store the application id
+ * @return Value from DltReturnValue enum
+ */
+DltReturnValue dlt_get_appid(char *appid);
+
+/**
* Register a context in the daemon.
* This function has to be called before first usage of the context.
* @param handle pointer to an object containing information about one special logging context
diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h
index 4ad6854..1b386bf 100644
--- a/include/dlt/dlt_user_macros.h
+++ b/include/dlt/dlt_user_macros.h
@@ -126,6 +126,13 @@
(void)dlt_unregister_app_flush_buffered_logs(); } while (0)
/**
+ * To Get application ID.
+ * @Param APPID character pointer of minimum 4 bytes
+ */
+#define DLT_GET_APPID(APPID) do{\
+ dlt_get_appid(APPID);} while(0)
+
+/**
* Register context (with default log level and default trace status)
* @param CONTEXT object containing information about one special logging context
* @param CONTEXTID context id with maximal four characters