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.
This commit is contained in:
Wim Taymans 2023-07-28 11:18:12 +02:00
parent 390f6c9cb8
commit 6e70fe459d
4 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;