diff options
author | Olivier Guiter <olivier.guiter@linux.intel.com> | 2013-01-09 15:15:10 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-01-09 18:22:28 +0100 |
commit | 786ef31e8066c7aa6f8774222782a24ac0a3b0fd (patch) | |
tree | f7095c73f15e694e45ffb5c873b4a5b843e4765d /include | |
parent | ae84e125349a1dea18bb223a28a13bc2e5f7a542 (diff) | |
download | neard-786ef31e8066c7aa6f8774222782a24ac0a3b0fd.tar.gz neard-786ef31e8066c7aa6f8774222782a24ac0a3b0fd.tar.bz2 neard-786ef31e8066c7aa6f8774222782a24ac0a3b0fd.zip |
ndef: Add records comparison helpers
These functions propose to check ndef records for specific fields
like mime type or ID field in record header.
Diffstat (limited to 'include')
-rw-r--r-- | include/ndef.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |