summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOlivier Guiter <olivier.guiter@linux.intel.com>2012-06-20 13:11:39 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-06-20 13:11:39 +0200
commite0ea4d9eb4d0dde405ef346d354725e855782ada (patch)
tree809413a68397fbd91567b38818a0ca0212dd27ee /include
parente2b7f49f59a8d05ace128ee40624c0ab0f309960 (diff)
downloadneard-e0ea4d9eb4d0dde405ef346d354725e855782ada.tar.gz
neard-e0ea4d9eb4d0dde405ef346d354725e855782ada.tar.bz2
neard-e0ea4d9eb4d0dde405ef346d354725e855782ada.zip
ndef: Add NDEF record couting routine
For a defined record type, this routine will count how many records are found in an NDEF.
Diffstat (limited to 'include')
-rw-r--r--include/ndef.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ndef.h b/include/ndef.h
index 0d23a85..4bc5aa9 100644
--- a/include/ndef.h
+++ b/include/ndef.h
@@ -32,6 +32,9 @@ struct near_ndef_message {
uint8_t *data;
};
+int near_ndef_count_records(uint8_t *ndef_in, size_t ndef_in_length,
+ uint8_t record_type);
+
int near_ndef_record_length(uint8_t *ndef_in, size_t ndef_in_length);
GList *near_ndef_parse(uint8_t *ndef_data, size_t ndef_length);