summaryrefslogtreecommitdiffstats
path: root/src/api.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-05-24 22:57:13 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-07-04 23:18:45 -0700
commit6eb99ceb647cf35c39dc97292f00040fbb821170 (patch)
tree1db97cb18370f6b25902bb06b2e01a74aae169e2 /src/api.c
parentf9e5259d74c8cf521921a96377c64691b5b3c3ae (diff)
binding: nfc: new initial binding
Slight rewrite to use libnfc initially for getting tag uid's for user settings. Bug-AGL: SPEC-1554 Change-Id: I7b8c30102b82e86a92c89909bcbfba9ab7164c1f Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'src/api.c')
-rw-r--r--src/api.c63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/api.c b/src/api.c
deleted file mode 100644
index 8e928fd..0000000
--- a/src/api.c
+++ /dev/null
@@ -1,63 +0,0 @@
-#include "nfc-binding.h"
-
-/*
-static const struct afb_auth nfc_auths[] = {
-};
-*/
-
-static const struct afb_verb_v2 nfc_verbs[] = {
- {
- .verb = "subscribe",
- .callback = verb_subscribe,
- .auth = NULL,
- .info = NULL,
- .session = AFB_SESSION_NONE_V2
- },
- {
- .verb = "unsubscribe",
- .callback = verb_unsubscribe,
- .auth = NULL,
- .info = NULL,
- .session = AFB_SESSION_NONE_V2
- },
- {
- .verb = "list-devices",
- .callback = verb_list_devices,
- .auth = NULL,
- .info = NULL,
- .session = AFB_SESSION_NONE_V2
- },
- {
- .verb = "list-devices-capabilities",
- .callback = verb_list_devices_capabilities,
- .auth = NULL,
- .info = NULL,
- .session = AFB_SESSION_NONE_V2
- },
- {
- .verb = "start",
- .callback = verb_start,
- .auth = NULL,
- .info = NULL,
- .session = AFB_SESSION_NONE_V2
- },
- {
- .verb = "stop",
- .callback = verb_stop,
- .auth = NULL,
- .info = NULL,
- .session = AFB_SESSION_NONE_V2
- },
- { .verb = NULL }
-};
-
-const struct afb_binding afbBindingV2 = {
- .api = "nfc",
- .specification = NULL,
- .info = NULL,
- .verbs = nfc_verbs,
- .preinit = NULL,
- .init = init,
- .onevent = NULL,
- .noconcurrency = 0
-};