summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-02-08 14:15:33 +0200
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-03-09 18:17:23 +0000
commite0809f502ceb64356512f6dfa16899a3d7dc204a (patch)
tree6da6a786b82f10c77355d2f0182db7993e6e6743
parent27cbe08fb5446d17d80d8a563e2c7b0432e88a0d (diff)
downloadbluez-e0809f502ceb64356512f6dfa16899a3d7dc204a.tar.gz
core/profile: Add authorization UUID information to btd_profile
This is necessary since some profiles may use different UUID for authorization.
-rw-r--r--profiles/audio/a2dp.c2
-rw-r--r--profiles/audio/avrcp.c2
-rw-r--r--profiles/network/manager.c3
-rw-r--r--src/profile.h1
4 files changed, 8 insertions, 0 deletions
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 2fe396c44..2bc552ccb 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -2430,6 +2430,7 @@ static struct btd_profile a2dp_source_profile = {
.remote_uuid = A2DP_SOURCE_UUID,
.local_uuid = A2DP_SINK_UUID,
+ .auth_uuid = ADVANCED_AUDIO_UUID,
.device_probe = a2dp_source_probe,
.device_remove = a2dp_source_remove,
@@ -2448,6 +2449,7 @@ static struct btd_profile a2dp_sink_profile = {
.remote_uuid = A2DP_SINK_UUID,
.local_uuid = A2DP_SOURCE_UUID,
+ .auth_uuid = ADVANCED_AUDIO_UUID,
.device_probe = a2dp_sink_probe,
.device_remove = a2dp_sink_remove,
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index f4d3b03b4..6d16ab85a 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -4325,6 +4325,7 @@ static struct btd_profile avrcp_target_profile = {
.remote_uuid = AVRCP_TARGET_UUID,
.local_uuid = AVRCP_REMOTE_UUID,
+ .auth_uuid = AVRCP_REMOTE_UUID,
.device_probe = avrcp_target_probe,
.device_remove = avrcp_target_remove,
@@ -4410,6 +4411,7 @@ static struct btd_profile avrcp_controller_profile = {
.remote_uuid = AVRCP_REMOTE_UUID,
.local_uuid = AVRCP_TARGET_UUID,
+ .auth_uuid = AVRCP_REMOTE_UUID,
.device_probe = avrcp_controller_probe,
.device_remove = avrcp_controller_remove,
diff --git a/profiles/network/manager.c b/profiles/network/manager.c
index 41377fb83..6f2460f7b 100644
--- a/profiles/network/manager.c
+++ b/profiles/network/manager.c
@@ -135,6 +135,7 @@ static struct btd_profile panu_profile = {
.name = "network-panu",
.local_uuid = NAP_UUID,
.remote_uuid = PANU_UUID,
+ .auth_uuid = BNEP_SVC_UUID,
.device_probe = connection_register,
.device_remove = connection_unregister,
.connect = connection_connect,
@@ -147,6 +148,7 @@ static struct btd_profile gn_profile = {
.name = "network-gn",
.local_uuid = PANU_UUID,
.remote_uuid = GN_UUID,
+ .auth_uuid = BNEP_SVC_UUID,
.device_probe = connection_register,
.device_remove = connection_unregister,
.connect = connection_connect,
@@ -159,6 +161,7 @@ static struct btd_profile nap_profile = {
.name = "network-nap",
.local_uuid = PANU_UUID,
.remote_uuid = NAP_UUID,
+ .auth_uuid = BNEP_SVC_UUID,
.device_probe = connection_register,
.device_remove = connection_unregister,
.connect = connection_connect,
diff --git a/src/profile.h b/src/profile.h
index 4448a2a6d..01cb2f364 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -33,6 +33,7 @@ struct btd_profile {
const char *local_uuid;
const char *remote_uuid;
+ const char *auth_uuid;
bool auto_connect;
bool external;