summaryrefslogtreecommitdiffstats
path: root/binding/afm-nfc-common.h
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-07-13 17:13:39 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-07-17 13:23:25 -0700
commit885fedc954bb83a00591fd1381e9bd3749fc2935 (patch)
tree0bdd9f3196e5088ee07906f6c2d69104f50a0b2a /binding/afm-nfc-common.h
parent66c594fdc40eb745bed177187b409e938736101b (diff)
binding: nfc: use cached json_object for events
Cache the json_object for event response for detect for future subscribers Bug-AGL: SPEC-1554 Change-Id: I4dfeb7f157a872db96c8c5fabae9c26547815baa Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/afm-nfc-common.h')
-rw-r--r--binding/afm-nfc-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/binding/afm-nfc-common.h b/binding/afm-nfc-common.h
index 26741e6..84e70bd 100644
--- a/binding/afm-nfc-common.h
+++ b/binding/afm-nfc-common.h
@@ -19,6 +19,7 @@
#ifndef AFM_NFC_COMMON_H
#define AFM_NFC_COMMON_H
+#include <json-c/json.h>
#include <nfc/nfc-types.h>
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
@@ -29,6 +30,9 @@ char *to_hex_string(unsigned char *data, size_t size);
typedef struct {
nfc_context *ctx;
nfc_device *dev;
+
+ /* cached JSON event response */
+ json_object *jresp;
} nfc_binding_data;
#endif // AFM_NFC_COMMON_H