summaryrefslogtreecommitdiffstats
path: root/src/nfc-binding.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nfc-binding.h')
-rw-r--r--src/nfc-binding.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/nfc-binding.h b/src/nfc-binding.h
new file mode 100644
index 0000000..a4fcfb4
--- /dev/null
+++ b/src/nfc-binding.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include <json-c/json.h>
+
+#define AFB_BINDING_VERSION 2
+#include <afb/afb-binding.h>
+
+// Initializations
+int init();
+
+// Verbs
+void verb_subscribe(struct afb_req req);
+void verb_unsubscribe(struct afb_req req);
+void verb_list_devices(struct afb_req req);
+void verb_list_devices_capabilities(struct afb_req req);
+void verb_start_polling(struct afb_req req);
+void verb_stop_polling(struct afb_req req);