summaryrefslogtreecommitdiffstats
path: root/src/libnfc_reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnfc_reader.h')
-rw-r--r--src/libnfc_reader.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libnfc_reader.h b/src/libnfc_reader.h
new file mode 100644
index 0000000..1209fda
--- /dev/null
+++ b/src/libnfc_reader.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <json-c/json.h>
+
+#define EXIT_LIBNFC_SUCCESS 0
+#define EXIT_LIBNFC_NOT_INITIALIZED 1
+#define EXIT_LIBNFC_NO_DEVICE_FOUND 2
+
+int libnfc_init();
+int libnfc_list_devices(struct json_object* result);
+int libnfc_list_devices_capabilities(struct json_object* result, struct json_object* devices);
+int libnfc_start_polling(struct json_object* result, struct json_object* devices);