session-manager: add monitor keys

Add keys to specify monitor endpoints
This commit is contained in:
Wim Taymans 2019-11-18 13:11:21 +01:00
parent e24e383550
commit 8d49964c4d
3 changed files with 3 additions and 0 deletions

View file

@ -34,6 +34,7 @@ extern "C" {
#define PW_KEY_ENDPOINT_ID "endpoint.id" /**< id of an endpoint */
#define PW_KEY_ENDPOINT_NAME "endpoint.name" /**< the name of an endpoint */
#define PW_KEY_ENDPOINT_MONITOR "endpoint.monitor" /**< endpoint is monitor of given endpoint */
#define PW_KEY_ENDPOINT_CLIENT_ID "endpoint.client.id" /**< client of the endpoint */
#define PW_KEY_ENDPOINT_ICON_NAME "endpoint.icon-name" /**< an XDG icon name for the device.
* Ex. "sound-card-speakers-usb" */

View file

@ -84,6 +84,7 @@ static int client_endpoint_stream_update(void *object,
PW_KEY_CLIENT_ID,
PW_KEY_ENDPOINT_ID,
PW_KEY_PRIORITY_SESSION,
PW_KEY_ENDPOINT_MONITOR,
PW_KEY_ENDPOINT_STREAM_NAME,
PW_KEY_ENDPOINT_STREAM_DESCRIPTION,
NULL

View file

@ -308,6 +308,7 @@ int endpoint_init(struct endpoint *this,
PW_KEY_ENDPOINT_NAME,
PW_KEY_ENDPOINT_CLIENT_ID,
PW_KEY_ENDPOINT_ICON_NAME,
PW_KEY_ENDPOINT_MONITOR,
NULL
};