From e69632e5320bd9d279255c24d23d83c7a1f2cc90 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 7 Feb 2014 15:40:06 +0200 Subject: core/profile: Add version information to btd_profile --- profiles/audio/a2dp.c | 2 ++ profiles/audio/avrcp.c | 2 ++ profiles/health/hdp_manager.c | 4 ++++ profiles/input/manager.c | 2 ++ profiles/network/manager.c | 3 +++ src/profile.h | 1 + 6 files changed, 14 insertions(+) diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c index 65255693d..04e49bb41 100644 --- a/profiles/audio/a2dp.c +++ b/profiles/audio/a2dp.c @@ -2427,6 +2427,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, @@ -2443,6 +2444,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, diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 994550aee..1d0348ce2 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -4322,6 +4322,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, @@ -4405,6 +4406,7 @@ done: static struct btd_profile avrcp_controller_profile = { .name = "avrcp-controller", + .version = 0x0104, .remote_uuid = AVRCP_REMOTE_UUID, .device_probe = avrcp_controller_probe, diff --git a/profiles/health/hdp_manager.c b/profiles/health/hdp_manager.c index 401adf6e9..c66c6b6a1 100644 --- a/profiles/health/hdp_manager.c +++ b/profiles/health/hdp_manager.c @@ -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, diff --git a/profiles/input/manager.c b/profiles/input/manager.c index 1d31b0652..dd9baf7da 100644 --- a/profiles/input/manager.c +++ b/profiles/input/manager.c @@ -56,6 +56,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, diff --git a/profiles/network/manager.c b/profiles/network/manager.c index 41377fb83..79a65a3d3 100644 --- a/profiles/network/manager.c +++ b/profiles/network/manager.c @@ -133,6 +133,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, @@ -145,6 +146,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, @@ -157,6 +159,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, diff --git a/src/profile.h b/src/profile.h index 4448a2a6d..96f2b2015 100644 --- a/src/profile.h +++ b/src/profile.h @@ -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; -- cgit v1.2.1