From 6e70fe459d90d275a2de2f2f7ca6ddae9b54dbbb Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 28 Jul 2023 11:18:12 +0200 Subject: [PATCH] pipewire: allow setting metadata on more objects The wireplumber unit test sets metadata on object 15, which happens to be a module. Allow metadata on other objects for now. It would be nice to disallow this in the future, though. --- src/pipewire/client.h | 2 +- src/pipewire/device.h | 2 +- src/pipewire/factory.h | 2 +- src/pipewire/module.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pipewire/client.h b/src/pipewire/client.h index 4ced66711..cd119643e 100644 --- a/src/pipewire/client.h +++ b/src/pipewire/client.h @@ -25,7 +25,7 @@ extern "C" { */ #define PW_TYPE_INTERFACE_Client PW_TYPE_INFO_INTERFACE_BASE "Client" -#define PW_CLIENT_PERM_MASK PW_PERM_RWX +#define PW_CLIENT_PERM_MASK PW_PERM_RWXM #define PW_VERSION_CLIENT 3 struct pw_client; diff --git a/src/pipewire/device.h b/src/pipewire/device.h index 478d580a9..4b546b994 100644 --- a/src/pipewire/device.h +++ b/src/pipewire/device.h @@ -25,7 +25,7 @@ extern "C" { #define PW_TYPE_INTERFACE_Device PW_TYPE_INFO_INTERFACE_BASE "Device" -#define PW_DEVICE_PERM_MASK PW_PERM_RWX +#define PW_DEVICE_PERM_MASK PW_PERM_RWXM #define PW_VERSION_DEVICE 3 struct pw_device; diff --git a/src/pipewire/factory.h b/src/pipewire/factory.h index 26af2a06e..6eda0420d 100644 --- a/src/pipewire/factory.h +++ b/src/pipewire/factory.h @@ -27,7 +27,7 @@ extern "C" { */ #define PW_TYPE_INTERFACE_Factory PW_TYPE_INFO_INTERFACE_BASE "Factory" -#define PW_FACTORY_PERM_MASK PW_PERM_R +#define PW_FACTORY_PERM_MASK PW_PERM_R|PW_PERM_M #define PW_VERSION_FACTORY 3 struct pw_factory; diff --git a/src/pipewire/module.h b/src/pipewire/module.h index 6be7b9938..bd4eca616 100644 --- a/src/pipewire/module.h +++ b/src/pipewire/module.h @@ -24,7 +24,7 @@ extern "C" { */ #define PW_TYPE_INTERFACE_Module PW_TYPE_INFO_INTERFACE_BASE "Module" -#define PW_MODULE_PERM_MASK PW_PERM_R +#define PW_MODULE_PERM_MASK PW_PERM_R|PW_PERM_M #define PW_VERSION_MODULE 3 struct pw_module;