diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/dlt_user.c | 11 |
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 */ |