mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-23 20:24:21 +08:00
Add Application property to HealthChannel
This patch adds the Application property to HealthChannel, which allows to unambiguously relate a channel to an application. This property is useful when there are several processes interested in accepting HealthChannels but device address is not sufficient criteria to engage upon, or ignore, the ChannelConnected signal. Having the application path allows to determine role and data type, in the context of the process that has created that application.
This commit is contained in:
parent
8c8ce257af
commit
1532898319
@ -160,3 +160,8 @@ Properties:
|
||||
|
||||
Identifies the Remote Device that is connected with. Maps with
|
||||
a HealthDevice object.
|
||||
|
||||
object Application [readonly]
|
||||
|
||||
Identifies the HealthApplication to which this channel is
|
||||
related to (which indirectly defines its role and data type).
|
||||
|
@ -423,6 +423,9 @@ static DBusMessage *channel_get_properties(DBusConnection *conn,
|
||||
path = device_get_path(chan->dev->dev);
|
||||
dict_append_entry(&dict, "Device", DBUS_TYPE_OBJECT_PATH, &path);
|
||||
|
||||
path = chan->app->path;
|
||||
dict_append_entry(&dict, "Application", DBUS_TYPE_OBJECT_PATH, &path);
|
||||
|
||||
if (chan->config == HDP_RELIABLE_DC)
|
||||
type = g_strdup("Reliable");
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user