core/profile: Add version information to btd_profile
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 7 Feb 2014 13:40:06 +0000 (15:40 +0200)
committerMikko Ylinen <mikko.ylinen@intel.com>
Tue, 23 Sep 2014 18:29:21 +0000 (21:29 +0300)
profiles/audio/a2dp.c
profiles/audio/avrcp.c
profiles/health/hdp_manager.c
profiles/input/manager.c
profiles/network/manager.c
src/profile.h

index c1a93044ac37900be8b63bdd6592d94937d27281..25f09659e8580a01f989c7f3a8f8d7b73a824726 100644 (file)
@@ -2031,6 +2031,7 @@ static void media_server_remove(struct btd_adapter *adapter)
 static struct btd_profile a2dp_source_profile = {
        .name           = "a2dp-source",
        .priority       = BTD_PROFILE_PRIORITY_MEDIUM,
+       .version        = 0x0103,
 
        .remote_uuid    = A2DP_SOURCE_UUID,
        .device_probe   = a2dp_source_probe,
@@ -2047,6 +2048,7 @@ static struct btd_profile a2dp_source_profile = {
 static struct btd_profile a2dp_sink_profile = {
        .name           = "a2dp-sink",
        .priority       = BTD_PROFILE_PRIORITY_MEDIUM,
+       .version        = 0x0103,
 
        .remote_uuid    = A2DP_SINK_UUID,
        .device_probe   = a2dp_sink_probe,
index 055acc3c8527a0c52756afde959ff1b8d3000fb6..7ef72003936e89650a902071d9adfb28d6a6f241 100644 (file)
@@ -3854,6 +3854,7 @@ done:
 
 static struct btd_profile avrcp_target_profile = {
        .name           = "audio-avrcp-target",
+       .version        = 0x0105,
 
        .remote_uuid    = AVRCP_TARGET_UUID,
        .device_probe   = avrcp_target_probe,
@@ -3937,6 +3938,7 @@ done:
 
 static struct btd_profile avrcp_controller_profile = {
        .name           = "avrcp-controller",
+       .version        = 0x0104,
 
        .remote_uuid    = AVRCP_REMOTE_UUID,
        .device_probe   = avrcp_controller_probe,
index 1882043bce9657d9bfd75ac2ba24796484e20471..e83edd5505f627e64a6dc3a5c854ee5973786cbc 100644 (file)
@@ -70,6 +70,8 @@ static void hdp_driver_remove(struct btd_service *service)
 
 static struct btd_profile hdp_source_profile = {
        .name           = "hdp-source",
+       .version        = 0x0100,
+
        .remote_uuid    = HDP_SOURCE_UUID,
 
        .device_probe   = hdp_driver_probe,
@@ -81,6 +83,8 @@ static struct btd_profile hdp_source_profile = {
 
 static struct btd_profile hdp_sink_profile = {
        .name           = "hdp-sink",
+       .version        = 0x0100,
+
        .remote_uuid    = HDP_SINK_UUID,
 
        .device_probe   = hdp_driver_probe,
index 9712d2c8ab0ddc05cec0ad01e47cef0f0e6ae285..cfc9f6a1117b8f8cb6a15c1c0057a6594d52d9b0 100644 (file)
@@ -57,6 +57,8 @@ static void hid_server_remove(struct btd_profile *p,
 
 static struct btd_profile input_profile = {
        .name           = "input-hid",
+       .version        = 0x0101,
+
        .local_uuid     = HID_UUID,
        .remote_uuid    = HID_UUID,
 
index 0fe98a04adbb3175cfd19f88ef123ab40f57d469..5177d739039c5444356a00f6ffef40ecc539270b 100644 (file)
@@ -135,6 +135,7 @@ static void nap_server_remove(struct btd_profile *p,
 
 static struct btd_profile panu_profile = {
        .name           = "network-panu",
+       .version        = 0x0100,
        .local_uuid     = NAP_UUID,
        .remote_uuid    = PANU_UUID,
        .device_probe   = connection_register,
@@ -147,6 +148,7 @@ static struct btd_profile panu_profile = {
 
 static struct btd_profile gn_profile = {
        .name           = "network-gn",
+       .version        = 0x0100,
        .local_uuid     = PANU_UUID,
        .remote_uuid    = GN_UUID,
        .device_probe   = connection_register,
@@ -159,6 +161,7 @@ static struct btd_profile gn_profile = {
 
 static struct btd_profile nap_profile = {
        .name           = "network-nap",
+       .version        = 0x0100,
        .local_uuid     = PANU_UUID,
        .remote_uuid    = NAP_UUID,
        .device_probe   = connection_register,
index 9aec27e978007cabecf6ef2d3d4b91cf9eff4d8b..f3565ea7e3e6a96d537f19db6b092006d2c4205a 100644 (file)
@@ -30,6 +30,7 @@ struct btd_service;
 struct btd_profile {
        const char *name;
        int priority;
+       uint16_t version;
 
        const char *local_uuid;
        const char *remote_uuid;