summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/4a-hal-utilities/4a-hal-utilities-data.h1
-rw-r--r--src/4a-hal-manager/4a-hal-manager-cb.c3
-rw-r--r--src/4a-internals-hal/4a-internals-hal-api-loader.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/lib/4a-hal-utilities/4a-hal-utilities-data.h b/lib/4a-hal-utilities/4a-hal-utilities-data.h
index b3874e7..dd89078 100644
--- a/lib/4a-hal-utilities/4a-hal-utilities-data.h
+++ b/lib/4a-hal-utilities/4a-hal-utilities-data.h
@@ -68,6 +68,7 @@ struct HalData {
enum HalStatus status;
char *sndCardPath;
int sndCardId;
+ char *uid;
char *info;
unsigned int internal;
diff --git a/src/4a-hal-manager/4a-hal-manager-cb.c b/src/4a-hal-manager/4a-hal-manager-cb.c
index facc15c..dd55eeb 100644
--- a/src/4a-hal-manager/4a-hal-manager-cb.c
+++ b/src/4a-hal-manager/4a-hal-manager-cb.c
@@ -117,11 +117,12 @@ void HalMgrLoaded(afb_req_t request)
snprintf(cardIdString, sizeof(cardIdString), "not-found");
wrapRet = wrap_json_pack(&apiRequestedInfoJ,
- "{s:s s:i s:s s:i s:s s:s s:s s:s s:s}",
+ "{s:s s:i s:s s:i s:s s:s s:s s:s s:s s:s}",
"api", currentHalData->apiName,
"status", (int) currentHalData->status,
"sndcard", currentHalData->sndCardPath,
"internal", (int) currentHalData->internal,
+ "uid", currentHalData->uid,
"info", currentHalData->info ? currentHalData->info : "",
"author", currentHalData->author ? currentHalData->author : "",
"version", currentHalData->version ? currentHalData->version : "",
diff --git a/src/4a-internals-hal/4a-internals-hal-api-loader.c b/src/4a-internals-hal/4a-internals-hal-api-loader.c
index 9cb3481..839b3a7 100644
--- a/src/4a-internals-hal/4a-internals-hal-api-loader.c
+++ b/src/4a-internals-hal/4a-internals-hal-api-loader.c
@@ -87,6 +87,7 @@ static int InternalHalInitOneApi(afb_api_t apiHandle)
currentHalData->internal = 1;
currentHalData->sndCardPath = (char *) ctrlConfig->uid;
+ currentHalData->uid = (char *) ctrlConfig->uid;
currentHalData->info = (char *) ctrlConfig->info;
currentHalData->author = (char *) ctrlConfig->author;