summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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;