summaryrefslogtreecommitdiffstats
path: root/dundee
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2013-04-23 18:21:50 -0300
committerDenis Kenzior <denkenz@gmail.com>2013-04-25 03:38:11 -0500
commit48cb2e5249d56ddb796440cb81ce824adc8ead16 (patch)
treebf6988ea0f2b53e26d06d2e991314840b7cd97a0 /dundee
parent9a3cfcd109515026d82243e156bd691dc9c51aa2 (diff)
downloadofono-48cb2e5249d56ddb796440cb81ce824adc8ead16.tar.bz2
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.
Diffstat (limited to 'dundee')
-rw-r--r--dundee/bluez5.c4
1 files changed, 2 insertions, 2 deletions
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)