From ea00a446dbacead62040dd2bd7e663774c205c04 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Mon, 10 Mar 2008 14:20:50 +0000 Subject: added new function to convert uuid to string(uuid128) --- hcid/device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hcid/device.c') diff --git a/hcid/device.c b/hcid/device.c index b16a8189..538ce853 100644 --- a/hcid/device.c +++ b/hcid/device.c @@ -749,8 +749,8 @@ void device_foreach(GFunc func, gpointer user_data) static void device_free(struct device *device) { - sdp_list_free(device->uuids, (sdp_free_func_t) free); - g_free(device->address); + g_slist_foreach(device->uuids, (GFunc) g_free, NULL); + g_slist_free(device->uuids); g_free(device->path); g_free(device); } @@ -885,7 +885,7 @@ static DBusSignalVTable device_signals[] = { }; const char *device_create(struct adapter *adapter, - const char *address, sdp_list_t *uuids) + const char *address, GSList *uuids) { struct device *device; -- cgit