diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-10-15 16:40:45 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-10-15 21:17:35 +0200 |
commit | f833c3a7fbaadea747933fdaf3d3b4fa72637a3b (patch) | |
tree | d413d7b3a9fa33fad9c04fb30e4ea8dd8dcaadc9 | |
parent | 1f9f77de3caf2125cacbddf0a1e5cad7a049711b (diff) |
Rename 'remove' verb as 'detach' verb
BUG-AGL: SPEC-2894
Change-Id: Id6d82a02f055c4df73044fd575591938a7d46b14
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r-- | plugins/alsa/alsa-api-mixer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/alsa/alsa-api-mixer.c b/plugins/alsa/alsa-api-mixer.c index 73f208a..f0e8b78 100644 --- a/plugins/alsa/alsa-api-mixer.c +++ b/plugins/alsa/alsa-api-mixer.c @@ -59,9 +59,11 @@ CTLP_ONLOAD(plugin, callbacks){ } -static void MixerRemoveVerb(afb_req_t request) { - afb_req_fail_f(request, "internal-error", "Function not implemented"); - return; +static void MixerDetachVerb(afb_req_t request) { + AFB_REQ_DEBUG(request, + "Detach verb not implemented yet, received request json %s", + json_object_get_string(afb_req_json(request))); + afb_req_success(request, NULL, "Function not implemented"); } STATIC json_object *MixerInfoOneStream(AlsaStreamAudioT *stream, int verbose) { @@ -677,7 +679,7 @@ fail: STATIC afb_verb_t CtrlApiVerbs[] = { /* VERB'S NAME FUNCTION TO CALL SHORT DESCRIPTION */ { .verb = "attach", .callback = MixerAttachVerb, .info = "attach resources to mixer"}, - { .verb = "remove", .callback = MixerRemoveVerb, .info = "remove existing mixer streams, zones, ..."}, + { .verb = "detach", .callback = MixerDetachVerb, .info = "detach existing mixer streams, zones, ..."}, { .verb = "info", .callback = MixerInfoVerb, .info = "list existing mixer streams, zones, ..."}, { .verb = NULL} /* marker for end of the array */ }; |