From 786ef31e8066c7aa6f8774222782a24ac0a3b0fd Mon Sep 17 00:00:00 2001 From: Olivier Guiter Date: Wed, 9 Jan 2013 15:15:10 +0100 Subject: ndef: Add records comparison helpers These functions propose to check ndef records for specific fields like mime type or ID field in record header. --- include/ndef.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/ndef.h') diff --git a/include/ndef.h b/include/ndef.h index cbcf0b0..d35dcfe 100644 --- a/include/ndef.h +++ b/include/ndef.h @@ -65,4 +65,13 @@ near_ndef_prepare_smartposter_record(uint8_t uri_identifier, uint32_t uri_field_length, uint8_t *uri_field); +near_bool_t near_ndef_record_cmp_id(struct near_ndef_record *rec1, + struct near_ndef_record *rec2); +near_bool_t near_ndef_record_cmp_mime(struct near_ndef_record *rec1, + struct near_ndef_record *rec2); + + +size_t near_ndef_data_length(struct near_ndef_record *data); +uint8_t *near_ndef_data_ptr(struct near_ndef_record *data); + #endif -- cgit v1.2.3