summaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-ApiHat.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-07-19 17:22:00 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-07-20 11:39:37 +0000
commit7b20b115c4ec4b9c157d19d5154453f5c751a5d6 (patch)
tree3a56e02b4aaff0cc0bf205f27134d40a617dda59 /alsa-binding/Alsa-ApiHat.c
parent2209293bec9ce0cff772dedbec326704f5a2ca42 (diff)
Use some app-fwk macros to support v2 and v3
Use some application framework macros to support both v2 and v3 compilation. Change-Id: I3051bbeff8788ea2c71545e5d253619d4749ff41 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'alsa-binding/Alsa-ApiHat.c')
-rw-r--r--alsa-binding/Alsa-ApiHat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/alsa-binding/Alsa-ApiHat.c b/alsa-binding/Alsa-ApiHat.c
index 7c5f29e..f43e421 100644
--- a/alsa-binding/Alsa-ApiHat.c
+++ b/alsa-binding/Alsa-ApiHat.c
@@ -30,7 +30,7 @@
#include "Alsa-ApiHat.h"
-STATIC void pingtest(struct afb_req request) {
+STATIC void pingtest(afb_req_t request) {
json_object *query = afb_req_json(request);
afb_req_success(request, json_object_get(query), NULL);
}
@@ -38,7 +38,7 @@ STATIC void pingtest(struct afb_req request) {
/*
* array of the verbs exported to afb-daemon
*/
-static const struct afb_verb_v2 api_verbs[] = {
+static const afb_verb_t api_verbs[] = {
/* VERB'S NAME FUNCTION TO CALL */
{ .verb = "ping", .callback = pingtest, .info="Ping Presence Check on API"},
{ .verb = "infoget", .callback = alsaGetInfo, .info="Return sound cards list"},
@@ -61,7 +61,7 @@ static const struct afb_verb_v2 api_verbs[] = {
/*
* description of the binding for afb-daemon
*/
-const afb_binding_v2 afbBindingV2 = {
+const afb_binding_t afbBindingExport = {
.api = "alsacore",
.verbs = api_verbs,
};