From 48cb2e5249d56ddb796440cb81ce824adc8ead16 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Tue, 23 Apr 2013 18:21:50 -0300 Subject: bluez5: Unify bt_register_profile_* into a single function It was a cause of confusion for little gain to have separate functions for registering profiles with extra information, for example "role" and "features". We remove those helper functions in favor of a single one with more parameters, "role" and "feature" when NULL, will be ignored. --- dundee/bluez5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dundee') diff --git a/dundee/bluez5.c b/dundee/bluez5.c index 3f9c6463..79b5adec 100644 --- a/dundee/bluez5.c +++ b/dundee/bluez5.c @@ -379,8 +379,8 @@ static void connect_handler(DBusConnection *conn, void *user_data) { DBG(""); - bt_register_profile_with_role(conn, DUN_GW_UUID, DUN_VERSION_1_2, - "dun_dt", DUN_DT_PROFILE_PATH, "client"); + bt_register_profile(conn, DUN_GW_UUID, DUN_VERSION_1_2, "dun_dt", + DUN_DT_PROFILE_PATH, "client", 0); } int __dundee_bluetooth_init(void) -- cgit v1.2.3