summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-10 14:25:18 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-17 11:29:21 +0200
commit8f621db153a9372fb7ca511ad9f8f49c1372f3f8 (patch)
treeb5c8e9ead0a3aaa497aac3e8f0884c9faa968fee /lib
parentbb538c86503e1f507cb51e269e3709e48458c325 (diff)
Add 'available' info in dependency json
Add boolean 'available' info in dependency json to indicate if a dependency is resolved. This json is used when calling mixer, therefore this information will be usefull for mixer. BUG-AGL: SPEC-2886 Change-Id: I957c23c8c22b77fa187d3fe505d6944d8047ed84 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'lib')
-rw-r--r--lib/4a-hal-utilities/4a-hal-utilities-data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/4a-hal-utilities/4a-hal-utilities-data.c b/lib/4a-hal-utilities/4a-hal-utilities-data.c
index ea92b0e..888516f 100644
--- a/lib/4a-hal-utilities/4a-hal-utilities-data.c
+++ b/lib/4a-hal-utilities/4a-hal-utilities-data.c
@@ -487,8 +487,9 @@ json_object *HalUtlGetCompactJsonForSpecificDependencies(afb_api_t apiHandle,
cardNb = requestedProbedDevice->deviceData->extendedCardNb;
wrapRet = wrap_json_pack(&requestedProbedDeviceJ,
- "{s:s s:s}",
+ "{s:s, s:b, s:s}",
"uid", requestedProbedDevice->uid,
+ "available", cardNb ? 1 : 0,
"cardNb", cardNb ? cardNb : "none");
if(wrapRet) {
AFB_API_ERROR(apiHandle,