diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-02-08 14:15:33 +0200 |
---|---|---|
committer | Mikko Ylinen <mikko.ylinen@intel.com> | 2014-09-23 21:29:21 +0300 |
commit | f13f13a7525eee970d176efe82e292926e25a3e3 (patch) | |
tree | da1f5e8a87cbb53d6458c8cfba58d37407b6ed2e | |
parent | 3935736faa116385587b681c06b70212808e7b3e (diff) | |
download | bluez-f13f13a7525eee970d176efe82e292926e25a3e3.tar.gz bluez-f13f13a7525eee970d176efe82e292926e25a3e3.tar.bz2 bluez-f13f13a7525eee970d176efe82e292926e25a3e3.zip |
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.c | 2 | ||||
-rw-r--r-- | profiles/audio/avrcp.c | 2 | ||||
-rw-r--r-- | profiles/network/manager.c | 3 | ||||
-rw-r--r-- | src/profile.h | 1 |
4 files changed, 8 insertions, 0 deletions
diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c index 14b52851..3214cd30 100644 --- a/profiles/audio/a2dp.c +++ b/profiles/audio/a2dp.c @@ -2035,6 +2035,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, @@ -2054,6 +2055,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 dce000fd..6c398de1 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -3858,6 +3858,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, @@ -3944,6 +3945,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 5177d739..81b0ce05 100644 --- a/profiles/network/manager.c +++ b/profiles/network/manager.c @@ -138,6 +138,7 @@ static struct btd_profile panu_profile = { .version = 0x0100, .local_uuid = NAP_UUID, .remote_uuid = PANU_UUID, + .auth_uuid = BNEP_SVC_UUID, .device_probe = connection_register, .device_remove = connection_unregister, .connect = connection_connect, @@ -151,6 +152,7 @@ static struct btd_profile gn_profile = { .version = 0x0100, .local_uuid = PANU_UUID, .remote_uuid = GN_UUID, + .auth_uuid = BNEP_SVC_UUID, .device_probe = connection_register, .device_remove = connection_unregister, .connect = connection_connect, @@ -164,6 +166,7 @@ static struct btd_profile nap_profile = { .version = 0x0100, .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 f3565ea7..61927183 100644 --- a/src/profile.h +++ b/src/profile.h @@ -34,6 +34,7 @@ struct btd_profile { const char *local_uuid; const char *remote_uuid; + const char *auth_uuid; bool auto_connect; |