summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVo Trung Chi <chi.votrung@vn.bosch.com>2019-11-14 14:10:23 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2019-11-14 16:10:23 +0900
commitb38a8d1631cf7fc8eec6d1e88b60d5db340ee376 (patch)
tree956e60b9c6b35afad7ee4a422f08a15b6e22ff0c /include
parent181fa112dd00021c834ebe85a38ab39834a2eb11 (diff)
downloadDLT-daemon-b38a8d1631cf7fc8eec6d1e88b60d5db340ee376.tar.gz
Provide DLT_GET_APPID macro (#187) (#188)
Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com>
Diffstat (limited to 'include')
-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