summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-11-18 13:11:21 +0100
committerWim Taymans <wtaymans@redhat.com>2019-11-29 13:34:08 +0100
commit8d49964c4d84f3c187cfd326ff4d93577985078b (patch)
tree1b08fc9695ba8be60855c72effa83adb4eb61479
parente24e3835503cf2cc2b7a6d8d31c5ec3cee3be6bc (diff)
session-manager: add monitor keys
Add keys to specify monitor endpoints
-rw-r--r--src/extensions/session-manager/keys.h1
-rw-r--r--src/modules/module-session-manager/client-endpoint.c1
-rw-r--r--src/modules/module-session-manager/endpoint.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/extensions/session-manager/keys.h b/src/extensions/session-manager/keys.h
index 9d5c2e32..c1275af4 100644
--- a/src/extensions/session-manager/keys.h
+++ b/src/extensions/session-manager/keys.h
@@ -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" */
diff --git a/src/modules/module-session-manager/client-endpoint.c b/src/modules/module-session-manager/client-endpoint.c
index bb26c9dc..06d79d86 100644
--- a/src/modules/module-session-manager/client-endpoint.c
+++ b/src/modules/module-session-manager/client-endpoint.c
@@ -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
diff --git a/src/modules/module-session-manager/endpoint.c b/src/modules/module-session-manager/endpoint.c
index d66f7cef..0ec34e87 100644
--- a/src/modules/module-session-manager/endpoint.c
+++ b/src/modules/module-session-manager/endpoint.c
@@ -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
};