summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-02-07 15:40:06 +0200
committerMikko Ylinen <mikko.ylinen@intel.com>2014-09-23 21:29:21 +0300
commitbd74b8bbfb35821c93491792362818b71d926053 (patch)
tree1bf3bd5a8ed9486f277e3f06085d6184da2927f1
parenta778e57ef2037e09401503a533caaa069f1c2cca (diff)
downloadbluez-bd74b8bbfb35821c93491792362818b71d926053.tar.gz
bluez-bd74b8bbfb35821c93491792362818b71d926053.tar.bz2
bluez-bd74b8bbfb35821c93491792362818b71d926053.zip
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 c1a93044..25f09659 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
@@ -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,
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 055acc3c..7ef72003 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -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,
diff --git a/profiles/health/hdp_manager.c b/profiles/health/hdp_manager.c
index 1882043b..e83edd55 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 9712d2c8..cfc9f6a1 100644
--- a/profiles/input/manager.c
+++ b/profiles/input/manager.c
@@ -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,
diff --git a/profiles/network/manager.c b/profiles/network/manager.c
index 0fe98a04..5177d739 100644
--- a/profiles/network/manager.c
+++ b/profiles/network/manager.c
@@ -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,
diff --git a/src/profile.h b/src/profile.h
index 9aec27e9..f3565ea7 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;