diff options
author | Loïc Collignon <loic.collignon@iot.bzh> | 2017-10-23 10:51:37 +0200 |
---|---|---|
committer | Loïc Collignon <loic.collignon@iot.bzh> | 2017-10-23 10:51:37 +0200 |
commit | 44096523e0c45c6b02840f2fe2aca337510fac28 (patch) | |
tree | dc9c7b2be0750c011fd7c581df65f7b2e0a9ec16 /src/nfc-binding.h | |
parent | 5441251cae0eea3786c327b3b3386eae5bf687db (diff) |
add nfc binding
Change-Id: I1ebf8e803436430490201db533c2a5a04c04295e
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'src/nfc-binding.h')
-rw-r--r-- | src/nfc-binding.h | 17 |
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); |