summaryrefslogtreecommitdiff
path: root/src/lib/dlt_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dlt_user.c')
-rw-r--r--src/lib/dlt_user.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index 8031b66..c3da424 100644
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -414,6 +414,17 @@ DltReturnValue dlt_init(void)
return DLT_RETURN_OK;
}
+DltReturnValue dlt_get_appid(char *appid)
+{
+ if (appid != NULL) {
+ strncpy(appid, dlt_user.appID, 4);
+ return DLT_RETURN_OK;
+ } else {
+ dlt_log(LOG_ERR, "Invalid parameter.\n");
+ return DLT_RETURN_WRONG_PARAMETER;
+ }
+}
+
DltReturnValue dlt_init_file(const char *name)
{
/* check null pointer */