summaryrefslogtreecommitdiffstats
path: root/plugins/alsa
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-15 16:40:45 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-15 21:17:35 +0200
commitf833c3a7fbaadea747933fdaf3d3b4fa72637a3b (patch)
treed413d7b3a9fa33fad9c04fb30e4ea8dd8dcaadc9 /plugins/alsa
parent1f9f77de3caf2125cacbddf0a1e5cad7a049711b (diff)
Rename 'remove' verb as 'detach' verb
BUG-AGL: SPEC-2894 Change-Id: Id6d82a02f055c4df73044fd575591938a7d46b14 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'plugins/alsa')
-rw-r--r--plugins/alsa/alsa-api-mixer.c10
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 */
};