summaryrefslogtreecommitdiffstats
path: root/src/api.c
diff options
context:
space:
mode:
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
-};