From ac2b9b3e11ec72a8e066b4da22d539c7be5641aa Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 2 Oct 2012 13:51:01 +0300 Subject: [PATCH] core: Support friendly names in profile registration --- src/profile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/profile.c b/src/profile.c index 6347b5c10..3a88f5380 100644 --- a/src/profile.c +++ b/src/profile.c @@ -35,10 +35,12 @@ #include #include +#include #include "btio.h" #include "log.h" #include "error.h" +#include "glib-helper.h" #include "dbus-common.h" #include "adapter.h" #include "manager.h" @@ -716,7 +718,9 @@ static struct ext_profile *create_ext(const char *owner, const char *path, ext->owner = g_strdup(owner); ext->path = g_strdup(path); - ext->uuid = g_strdup(uuid); + + ext->uuid = bt_name2string(uuid); + ext->remote_uuids = g_new0(char *, 1); ext->sec_level = BT_IO_SEC_LOW; -- 2.47.3