GList *near_ndef_parse(uint8_t *ndef_data, size_t ndef_length);
+void near_ndef_records_free(GList *records);
+
struct near_ndef_message *near_ndef_prepare_text_record(char *encoding,
char *language_code, char *text);
return records;
}
+void near_ndef_records_free(GList *records)
+{
+ GList *list;
+
+ for (list = records; list; list = list->next) {
+ struct near_ndef_record *record = list->data;
+
+ __near_ndef_record_free(record);
+ }
+
+ g_list_free(records);
+}
+
/*
* @brief Compute an NDEF record length
*