summaryrefslogtreecommitdiffstats
path: root/src/api.c
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2017-11-09 15:03:18 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2017-11-09 15:03:18 +0100
commitaa5da1e1a47c4d8c6e3265e0d99335bebb28e378 (patch)
treecd4795cdb908874bd8cad1f821ff084b7832389e /src/api.c
parent2f540d4b238b773ee1eaf4aae4c08e2fb93cabc5 (diff)
rename verbs to match the aia-binding expectations.
Change-Id: Ic959f94f55cd3c010663369c54e63089725a8556 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'src/api.c')
-rw-r--r--src/api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api.c b/src/api.c
index e508e86..8e928fd 100644
--- a/src/api.c
+++ b/src/api.c
@@ -35,15 +35,15 @@ static const struct afb_verb_v2 nfc_verbs[] = {
.session = AFB_SESSION_NONE_V2
},
{
- .verb = "start-polling",
- .callback = verb_start_polling,
+ .verb = "start",
+ .callback = verb_start,
.auth = NULL,
.info = NULL,
.session = AFB_SESSION_NONE_V2
},
{
- .verb = "stop-polling",
- .callback = verb_stop_polling,
+ .verb = "stop",
+ .callback = verb_stop,
.auth = NULL,
.info = NULL,
.session = AFB_SESSION_NONE_V2