summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-02-07 15:40:06 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-01-28 13:58:29 +0200
commite69632e5320bd9d279255c24d23d83c7a1f2cc90 (patch)
tree8a235bad4ea0dd41a6d6a7cff52113aa0c57d9f2
parent6fc8b2d14badd0bd9877f45ae740f75c0fb1c2d1 (diff)
downloadbluez-e69632e5320bd9d279255c24d23d83c7a1f2cc90.tar.gz
core/profile: Add version information to btd_profile
-rw-r--r--profiles/audio/a2dp.c2
-rw-r--r--profiles/audio/avrcp.c2
-rw-r--r--profiles/health/hdp_manager.c4
-rw-r--r--profiles/input/manager.c2
-rw-r--r--profiles/network/manager.c3
-rw-r--r--src/profile.h1
6 files changed, 14 insertions, 0 deletions
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;