core/profile: Add authorization UUID information to btd_profile
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 8 Feb 2014 12:15:33 +0000 (14:15 +0200)
committerMikko Ylinen <mikko.ylinen@intel.com>
Tue, 23 Sep 2014 18:29:21 +0000 (21:29 +0300)
This is necessary since some profiles may use different UUID for
authorization.

profiles/audio/a2dp.c
profiles/audio/avrcp.c
profiles/network/manager.c
src/profile.h

index 14b528511f9ce33394fc1247ff018ee006738c3c..3214cd3051a9124f452105084114f04648709c58 100644 (file)
@@ -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,
index dce000fd6eb58e99c8ead6559191cb3fea5a1b1c..6c398de1905f156220ebff7b06a666e644af31b1 100644 (file)
@@ -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,
index 5177d739039c5444356a00f6ffef40ecc539270b..81b0ce05e3fb8ea74c446d9fe9f1833650b6ad2b 100644 (file)
@@ -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,
index f3565ea7e3e6a96d537f19db6b092006d2c4205a..61927183ca9afd9037b92cdd4081167bb38f5566 100644 (file)
@@ -34,6 +34,7 @@ struct btd_profile {
 
        const char *local_uuid;
        const char *remote_uuid;
+       const char *auth_uuid;
 
        bool auto_connect;