From f833c3a7fbaadea747933fdaf3d3b4fa72637a3b Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Tue, 15 Oct 2019 16:40:45 +0200 Subject: Rename 'remove' verb as 'detach' verb BUG-AGL: SPEC-2894 Change-Id: Id6d82a02f055c4df73044fd575591938a7d46b14 Signed-off-by: Jonathan Aillet --- plugins/alsa/alsa-api-mixer.c | 10 ++++++---- 1 file 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 */ }; -- cgit 1.2.3-korg