diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-09-19 11:54:50 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-10-01 10:41:20 +0200 |
commit | b829ccf57c83d0cad0b285fdd9a25e823ce2bbcd (patch) | |
tree | 1eac2edcb961df5bcf3920c1838a877c89b69cc2 /alsa-binding/Alsa-ApiHat.h | |
parent | b2a41422fa86e1c899328b0b768ad779c29e1ede (diff) |
Rework verb request json parsing
Rework verb request json parsing to allow having request
without 'devid' key in json.
BUG-AGL: SPEC-2832
Change-Id: Id937d98c29d30b9298be3a1972f1a2cf5d0b722c
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'alsa-binding/Alsa-ApiHat.h')
-rw-r--r-- | alsa-binding/Alsa-ApiHat.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/alsa-binding/Alsa-ApiHat.h b/alsa-binding/Alsa-ApiHat.h index b5d3866..ba0d054 100644 --- a/alsa-binding/Alsa-ApiHat.h +++ b/alsa-binding/Alsa-ApiHat.h @@ -71,11 +71,9 @@ typedef struct { // generic structure to pass parsed query values typedef struct { - const char *devid; json_object *numidsJ; - queryModeE mode; int count; -} queryValuesT; +} controlQueryValuesT; // use to store crl numid user request typedef struct { @@ -88,7 +86,8 @@ typedef struct { // import from AlsaAfbBinding extern const struct afb_binding_interface *afbIface; -PUBLIC json_object *alsaCheckQuery (afb_req_t request, queryValuesT *queryValues); +PUBLIC char *alsaGetDevIdFromQuery(json_object *queryJ); +PUBLIC queryModeE alsaGetModeFromQuery(json_object *queryJ); // AlseCoreSetGet exports PUBLIC int getCardNbFromCardPath(char *cardPath); |