diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-07-11 16:55:35 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-07-13 10:33:42 -0700 |
commit | be766aef31246b7520931923fc27ebdcb0d573b6 (patch) | |
tree | 1a05c71ae6d4f5e4cc9c4a9759a2c5ee34767c4d /binding/afm-nfc-common.h | |
parent | 0d822f802d7ce1604966bbb7c9cf536052d8ea15 (diff) |
binding: nfc: move libnfc checks from thread
To allow runtime detection of libnfc vs neard devices in the
future libnfc check needs to be moved out of nfc_thread_loop
Bug-AGL: SPEC-1554
Change-Id: I53854838a2fcab7eefbed3ed8d165a14e2bdc9db
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/afm-nfc-common.h')
-rw-r--r-- | binding/afm-nfc-common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/binding/afm-nfc-common.h b/binding/afm-nfc-common.h index 49a0f8a..26741e6 100644 --- a/binding/afm-nfc-common.h +++ b/binding/afm-nfc-common.h @@ -19,8 +19,16 @@ #ifndef AFM_NFC_COMMON_H #define AFM_NFC_COMMON_H +#include <nfc/nfc-types.h> + #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) char *to_hex_string(unsigned char *data, size_t size); + +typedef struct { + nfc_context *ctx; + nfc_device *dev; +} nfc_binding_data; + #endif // AFM_NFC_COMMON_H |