diff options
Diffstat (limited to 'alsa-binding/Alsa-ApiHat.c')
-rw-r--r-- | alsa-binding/Alsa-ApiHat.c | 6 |
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, }; |