summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>2014-09-15 14:23:27 +0300
committerFrederic PAUT <fpaut@fpaut-MOBL2>2014-11-03 11:52:33 +0100
commit6cd4327ce01fc1e32ad936b180bf3ba7e6ba3977 (patch)
treec9e6341ceba5305e45b59da8df533b7716a66d48
parentd5a2a6f2d61b2edf850256a75cb03144ff83b4d6 (diff)
downloadneardal-6cd4327ce01fc1e32ad936b180bf3ba7e6ba3977.tar.gz
neardal-6cd4327ce01fc1e32ad936b180bf3ba7e6ba3977.tar.bz2
neardal-6cd4327ce01fc1e32ad936b180bf3ba7e6ba3977.zip
Eliminate the need for neardal_free_record().
-rw-r--r--lib/neardal.c13
-rw-r--r--lib/neardal_record.c3
2 files changed, 3 insertions, 13 deletions
diff --git a/lib/neardal.c b/lib/neardal.c
index 7866e3d..2c52cd7 100644
--- a/lib/neardal.c
+++ b/lib/neardal.c
@@ -972,19 +972,6 @@ errorCode_t neardal_get_records(char *tag, char ***array, int *len)
return *len ? NEARDAL_SUCCESS : NEARDAL_ERROR_NO_RECORD;
}
-/*****************************************************************************
- * neardal_free_record: Release memory allocated for properties of a record
- ****************************************************************************/
-void neardal_free_record(neardal_record *record)
-{
- if (record == NULL) {
- NEARDAL_TRACE_ERR("Record provided is NULL!\n");
- return;
- }
-
- neardal_record_free(record);
-}
-
errorCode_t neardal_get_record_properties(const char *name,
neardal_record **record)
{
diff --git a/lib/neardal_record.c b/lib/neardal_record.c
index 5e222dc..6e17158 100644
--- a/lib/neardal_record.c
+++ b/lib/neardal_record.c
@@ -34,6 +34,9 @@ void neardal_record_free(neardal_record *r)
memset(r, 0, sizeof(*r));
}
+void neardal_free_record(neardal_record *record) \
+ __attribute__ ((alias("neardal_record_free")));
+
GVariant *neardal_record_to_g_variant(neardal_record *in)
{
GVariantBuilder b;