internal/pipewire: constants from pipewire/keys.h
All checks were successful
Test / Create distribution (push) Successful in 36s
Test / Sandbox (push) Successful in 2m37s
Test / Sandbox (race detector) (push) Successful in 4m46s
Test / Hpkg (push) Successful in 4m53s
Test / Hakurei (push) Successful in 5m1s
Test / Hakurei (race detector) (push) Successful in 6m13s
Test / Flake checks (push) Successful in 1m22s
All checks were successful
Test / Create distribution (push) Successful in 36s
Test / Sandbox (push) Successful in 2m37s
Test / Sandbox (race detector) (push) Successful in 4m46s
Test / Hpkg (push) Successful in 4m53s
Test / Hakurei (push) Successful in 5m1s
Test / Hakurei (race detector) (push) Successful in 6m13s
Test / Flake checks (push) Successful in 1m22s
These are PipeWire spa_dict keys. Interestingly many keys in the sample are undefined and appear as magic strings in upstream source code. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
0d3ae6cb23
commit
d5509cc6e5
@ -14,42 +14,42 @@ func TestClientInfo(t *testing.T) {
|
||||
ID: 34,
|
||||
ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "core.name", Value: "pipewire-0"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
{Key: "pipewire.sec.pid", Value: "1443"},
|
||||
{Key: "pipewire.sec.uid", Value: "1000"},
|
||||
{Key: "pipewire.sec.gid", Value: "100"},
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "object.id", Value: "34"},
|
||||
{Key: "object.serial", Value: "34"},
|
||||
{Key: pipewire.PW_KEY_PROTOCOL, Value: "protocol-native"},
|
||||
{Key: pipewire.PW_KEY_CORE_NAME, Value: "pipewire-0"},
|
||||
{Key: pipewire.PW_KEY_SEC_SOCKET, Value: "pipewire-0-manager"},
|
||||
{Key: pipewire.PW_KEY_SEC_PID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_UID, Value: "1000"},
|
||||
{Key: pipewire.PW_KEY_SEC_GID, Value: "100"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_ID, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "34"},
|
||||
}}, nil},
|
||||
|
||||
{"sample*", samplePWContainer[1][3][1], pipewire.ClientInfo{
|
||||
ID: 34,
|
||||
ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "core.name", Value: "pipewire-alice-1443"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
{Key: "pipewire.sec.pid", Value: "1443"},
|
||||
{Key: "pipewire.sec.uid", Value: "1000"},
|
||||
{Key: "pipewire.sec.gid", Value: "100"},
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "object.id", Value: "34"},
|
||||
{Key: "object.serial", Value: "34"},
|
||||
{Key: "remote.intention", Value: "manager"},
|
||||
{Key: "application.name", Value: "pw-container"},
|
||||
{Key: "application.process.binary", Value: "pw-container"},
|
||||
{Key: "application.language", Value: "en_US.UTF-8"},
|
||||
{Key: "application.process.id", Value: "1443"},
|
||||
{Key: "application.process.user", Value: "alice"},
|
||||
{Key: "application.process.host", Value: "nixos"},
|
||||
{Key: "application.process.session-id", Value: "1"},
|
||||
{Key: "window.x11.display", Value: ":0"},
|
||||
{Key: pipewire.PW_KEY_PROTOCOL, Value: "protocol-native"},
|
||||
{Key: pipewire.PW_KEY_CORE_NAME, Value: "pipewire-alice-1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_SOCKET, Value: "pipewire-0-manager"},
|
||||
{Key: pipewire.PW_KEY_SEC_PID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_UID, Value: "1000"},
|
||||
{Key: pipewire.PW_KEY_SEC_GID, Value: "100"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_ID, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_REMOTE_INTENTION, Value: "manager"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_BINARY, Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_APP_LANGUAGE, Value: "en_US.UTF-8"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_ID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_USER, Value: "alice"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_HOST, Value: "nixos"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_SESSION_ID, Value: "1"},
|
||||
{Key: pipewire.PW_KEY_WINDOW_X11_DISPLAY, Value: ":0"},
|
||||
{Key: "cpu.vm.name", Value: "qemu"},
|
||||
{Key: "log.level", Value: "0"},
|
||||
{Key: "cpu.max-align", Value: "32"},
|
||||
{Key: pipewire.PW_KEY_CPU_MAX_ALIGN, Value: "32"},
|
||||
{Key: "default.clock.rate", Value: "48000"},
|
||||
{Key: "default.clock.quantum", Value: "1024"},
|
||||
{Key: "default.clock.min-quantum", Value: "32"},
|
||||
@ -66,34 +66,34 @@ func TestClientInfo(t *testing.T) {
|
||||
{Key: "mem.allow-mlock", Value: "true"},
|
||||
{Key: "settings.check-quantum", Value: "false"},
|
||||
{Key: "settings.check-rate", Value: "false"},
|
||||
{Key: "core.version", Value: "1.4.7"},
|
||||
{Key: pipewire.PW_KEY_CORE_VERSION, Value: "1.4.7"},
|
||||
}}, nil},
|
||||
|
||||
{"sample**", samplePWContainer[1][4][1], pipewire.ClientInfo{
|
||||
ID: 34,
|
||||
ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "core.name", Value: "pipewire-alice-1443"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
{Key: "pipewire.sec.pid", Value: "1443"},
|
||||
{Key: "pipewire.sec.uid", Value: "1000"},
|
||||
{Key: "pipewire.sec.gid", Value: "100"},
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "object.id", Value: "34"},
|
||||
{Key: "object.serial", Value: "34"},
|
||||
{Key: "remote.intention", Value: "manager"},
|
||||
{Key: "application.name", Value: "pw-container"},
|
||||
{Key: "application.process.binary", Value: "pw-container"},
|
||||
{Key: "application.language", Value: "en_US.UTF-8"},
|
||||
{Key: "application.process.id", Value: "1443"},
|
||||
{Key: "application.process.user", Value: "alice"},
|
||||
{Key: "application.process.host", Value: "nixos"},
|
||||
{Key: "application.process.session-id", Value: "1"},
|
||||
{Key: "window.x11.display", Value: ":0"},
|
||||
{Key: pipewire.PW_KEY_PROTOCOL, Value: "protocol-native"},
|
||||
{Key: pipewire.PW_KEY_CORE_NAME, Value: "pipewire-alice-1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_SOCKET, Value: "pipewire-0-manager"},
|
||||
{Key: pipewire.PW_KEY_SEC_PID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_UID, Value: "1000"},
|
||||
{Key: pipewire.PW_KEY_SEC_GID, Value: "100"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_ID, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_REMOTE_INTENTION, Value: "manager"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_BINARY, Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_APP_LANGUAGE, Value: "en_US.UTF-8"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_ID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_USER, Value: "alice"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_HOST, Value: "nixos"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_SESSION_ID, Value: "1"},
|
||||
{Key: pipewire.PW_KEY_WINDOW_X11_DISPLAY, Value: ":0"},
|
||||
{Key: "cpu.vm.name", Value: "qemu"},
|
||||
{Key: "log.level", Value: "0"},
|
||||
{Key: "cpu.max-align", Value: "32"},
|
||||
{Key: pipewire.PW_KEY_CPU_MAX_ALIGN, Value: "32"},
|
||||
{Key: "default.clock.rate", Value: "48000"},
|
||||
{Key: "default.clock.quantum", Value: "1024"},
|
||||
{Key: "default.clock.min-quantum", Value: "32"},
|
||||
@ -110,8 +110,8 @@ func TestClientInfo(t *testing.T) {
|
||||
{Key: "mem.allow-mlock", Value: "true"},
|
||||
{Key: "settings.check-quantum", Value: "false"},
|
||||
{Key: "settings.check-rate", Value: "false"},
|
||||
{Key: "core.version", Value: "1.4.7"},
|
||||
{Key: "pipewire.access", Value: "unrestricted"},
|
||||
{Key: pipewire.PW_KEY_CORE_VERSION, Value: "1.4.7"},
|
||||
{Key: pipewire.PW_KEY_ACCESS, Value: "unrestricted"},
|
||||
}}, nil},
|
||||
}.run(t)
|
||||
}
|
||||
@ -121,18 +121,18 @@ func TestClientUpdateProperties(t *testing.T) {
|
||||
|
||||
encodingTestCases[pipewire.ClientUpdateProperties, *pipewire.ClientUpdateProperties]{
|
||||
{"sample", samplePWContainer[0][1][1], pipewire.ClientUpdateProperties{Properties: &pipewire.SPADict{
|
||||
{Key: "remote.intention", Value: "manager"},
|
||||
{Key: "application.name", Value: "pw-container"},
|
||||
{Key: "application.process.binary", Value: "pw-container"},
|
||||
{Key: "application.language", Value: "en_US.UTF-8"},
|
||||
{Key: "application.process.id", Value: "1443"},
|
||||
{Key: "application.process.user", Value: "alice"},
|
||||
{Key: "application.process.host", Value: "nixos"},
|
||||
{Key: "application.process.session-id", Value: "1"},
|
||||
{Key: "window.x11.display", Value: ":0"},
|
||||
{Key: pipewire.PW_KEY_REMOTE_INTENTION, Value: "manager"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_BINARY, Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_APP_LANGUAGE, Value: "en_US.UTF-8"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_ID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_USER, Value: "alice"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_HOST, Value: "nixos"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_SESSION_ID, Value: "1"},
|
||||
{Key: pipewire.PW_KEY_WINDOW_X11_DISPLAY, Value: ":0"},
|
||||
{Key: "cpu.vm.name", Value: "qemu"},
|
||||
{Key: "log.level", Value: "0"},
|
||||
{Key: "cpu.max-align", Value: "32"},
|
||||
{Key: pipewire.PW_KEY_CPU_MAX_ALIGN, Value: "32"},
|
||||
{Key: "default.clock.rate", Value: "48000"},
|
||||
{Key: "default.clock.quantum", Value: "1024"},
|
||||
{Key: "default.clock.min-quantum", Value: "32"},
|
||||
@ -149,8 +149,8 @@ func TestClientUpdateProperties(t *testing.T) {
|
||||
{Key: "mem.allow-mlock", Value: "true"},
|
||||
{Key: "settings.check-quantum", Value: "false"},
|
||||
{Key: "settings.check-rate", Value: "false"},
|
||||
{Key: "core.version", Value: "1.4.7"},
|
||||
{Key: "core.name", Value: "pipewire-alice-1443"},
|
||||
{Key: pipewire.PW_KEY_CORE_VERSION, Value: "1.4.7"},
|
||||
{Key: pipewire.PW_KEY_CORE_NAME, Value: "pipewire-alice-1443"},
|
||||
}}, nil},
|
||||
}.run(t)
|
||||
}
|
||||
|
||||
@ -63,20 +63,20 @@ func TestCoreInfo(t *testing.T) {
|
||||
Name: "pipewire-0",
|
||||
ChangeMask: pipewire.PW_CORE_CHANGE_MASK_PROPS,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "config.name", Value: "pipewire.conf"},
|
||||
{Key: "application.name", Value: "pipewire"},
|
||||
{Key: "application.process.binary", Value: "pipewire"},
|
||||
{Key: "application.language", Value: "en_US.UTF-8"},
|
||||
{Key: "application.process.id", Value: "1446"},
|
||||
{Key: "application.process.user", Value: "alice"},
|
||||
{Key: "application.process.host", Value: "nixos"},
|
||||
{Key: "window.x11.display", Value: ":0"},
|
||||
{Key: pipewire.PW_KEY_CONFIG_NAME, Value: "pipewire.conf"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "pipewire"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_BINARY, Value: "pipewire"},
|
||||
{Key: pipewire.PW_KEY_APP_LANGUAGE, Value: "en_US.UTF-8"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_ID, Value: "1446"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_USER, Value: "alice"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_HOST, Value: "nixos"},
|
||||
{Key: pipewire.PW_KEY_WINDOW_X11_DISPLAY, Value: ":0"},
|
||||
{Key: "cpu.vm.name", Value: "qemu"},
|
||||
{Key: "link.max-buffers", Value: "16"},
|
||||
{Key: "core.daemon", Value: "true"},
|
||||
{Key: "core.name", Value: "pipewire-0"},
|
||||
{Key: pipewire.PW_KEY_CORE_DAEMON, Value: "true"},
|
||||
{Key: pipewire.PW_KEY_CORE_NAME, Value: "pipewire-0"},
|
||||
{Key: "default.clock.min-quantum", Value: "1024"},
|
||||
{Key: "cpu.max-align", Value: "32"},
|
||||
{Key: pipewire.PW_KEY_CPU_MAX_ALIGN, Value: "32"},
|
||||
{Key: "default.clock.rate", Value: "48000"},
|
||||
{Key: "default.clock.quantum", Value: "1024"},
|
||||
{Key: "default.clock.max-quantum", Value: "2048"},
|
||||
@ -92,8 +92,8 @@ func TestCoreInfo(t *testing.T) {
|
||||
{Key: "mem.allow-mlock", Value: "true"},
|
||||
{Key: "settings.check-quantum", Value: "false"},
|
||||
{Key: "settings.check-rate", Value: "false"},
|
||||
{Key: "object.id", Value: "0"},
|
||||
{Key: "object.serial", Value: "0"}},
|
||||
{Key: pipewire.PW_KEY_OBJECT_ID, Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "0"}},
|
||||
}, nil},
|
||||
}.run(t)
|
||||
}
|
||||
@ -203,13 +203,13 @@ func TestCoreBoundProps(t *testing.T) {
|
||||
ID: pipewire.PW_ID_CLIENT,
|
||||
GlobalID: 34,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "34"},
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "pipewire.sec.pid", Value: "1443"},
|
||||
{Key: "pipewire.sec.uid", Value: "1000"},
|
||||
{Key: "pipewire.sec.gid", Value: "100"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"}},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_PROTOCOL, Value: "protocol-native"},
|
||||
{Key: pipewire.PW_KEY_SEC_PID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_UID, Value: "1000"},
|
||||
{Key: pipewire.PW_KEY_SEC_GID, Value: "100"},
|
||||
{Key: pipewire.PW_KEY_SEC_SOCKET, Value: "pipewire-0-manager"}},
|
||||
}, nil},
|
||||
|
||||
/* recvmsg 1 */
|
||||
@ -218,7 +218,7 @@ func TestCoreBoundProps(t *testing.T) {
|
||||
ID: 3,
|
||||
GlobalID: 3,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "3"},
|
||||
},
|
||||
}, nil},
|
||||
}.run(t)
|
||||
@ -297,8 +297,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Core,
|
||||
Version: pipewire.PW_VERSION_CORE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "0"},
|
||||
{Key: "core.name", Value: "pipewire-0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "0"},
|
||||
{Key: pipewire.PW_KEY_CORE_NAME, Value: "pipewire-0"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -308,8 +308,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "1"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-rt"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "1"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-rt"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -319,7 +319,7 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_SecurityContext,
|
||||
Version: pipewire.PW_VERSION_SECURITY_CONTEXT,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "3"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -329,8 +329,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "2"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-protocol-native"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-protocol-native"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -340,7 +340,7 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Profiler,
|
||||
Version: pipewire.PW_VERSION_PROFILER,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "5"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "5"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -350,8 +350,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "4"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-profiler"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "4"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-profiler"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -361,8 +361,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "6"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-metadata"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "6"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-metadata"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -372,11 +372,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "7"},
|
||||
{Key: "module.id", Value: "6"},
|
||||
{Key: "factory.name", Value: "metadata"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_Metadata},
|
||||
{Key: "factory.type.version", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "7"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "6"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "metadata"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_Metadata},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "3"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -386,8 +386,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "8"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-spa-device-factory"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "8"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-spa-device-factory"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -397,11 +397,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "9"},
|
||||
{Key: "module.id", Value: "8"},
|
||||
{Key: "factory.name", Value: "spa-device-factory"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_Device},
|
||||
{Key: "factory.type.version", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "9"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "8"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "spa-device-factory"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_Device},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "3"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -411,8 +411,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "10"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-spa-node-factory"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "10"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-spa-node-factory"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -422,11 +422,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "11"},
|
||||
{Key: "module.id", Value: "10"},
|
||||
{Key: "factory.name", Value: "spa-node-factory"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_Node},
|
||||
{Key: "factory.type.version", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "11"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "10"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "spa-node-factory"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_Node},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "3"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -436,8 +436,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "12"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-client-node"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "12"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-client-node"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -447,11 +447,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "13"},
|
||||
{Key: "module.id", Value: "12"},
|
||||
{Key: "factory.name", Value: "client-node"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_ClientNode},
|
||||
{Key: "factory.type.version", Value: "6"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "13"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "12"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "client-node"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_ClientNode},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "6"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -461,8 +461,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "14"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-client-device"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "14"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-client-device"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -472,11 +472,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "15"},
|
||||
{Key: "module.id", Value: "14"},
|
||||
{Key: "factory.name", Value: "client-device"},
|
||||
{Key: "factory.type.name", Value: "Spa:Pointer:Interface:Device"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "15"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "14"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "client-device"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "Spa:Pointer:Interface:Device"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -486,8 +486,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "16"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-portal"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "16"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-portal"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -497,8 +497,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "17"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-access"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "17"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-access"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -508,8 +508,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "18"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-adapter"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "18"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-adapter"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -519,11 +519,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "19"},
|
||||
{Key: "module.id", Value: "18"},
|
||||
{Key: "factory.name", Value: "adapter"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_Node},
|
||||
{Key: "factory.type.version", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "19"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "18"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "adapter"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_Node},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "3"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -533,8 +533,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "20"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-link-factory"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "20"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-link-factory"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -544,11 +544,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "21"},
|
||||
{Key: "module.id", Value: "20"},
|
||||
{Key: "factory.name", Value: "link-factory"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_Link},
|
||||
{Key: "factory.type.version", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "21"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "20"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "link-factory"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_Link},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "3"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -558,8 +558,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "22"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-session-manager"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-session-manager"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -569,11 +569,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "23"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "client-endpoint"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:ClientEndpoint"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "23"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "client-endpoint"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:ClientEndpoint"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -583,11 +583,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "24"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "client-session"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:ClientSession"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "24"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "client-session"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:ClientSession"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -597,11 +597,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "25"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "session"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:Session"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "25"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "session"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:Session"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -611,11 +611,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "26"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "endpoint"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:Endpoint"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "26"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "endpoint"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:Endpoint"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -625,11 +625,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "27"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "endpoint-stream"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:EndpointStream"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "27"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "endpoint-stream"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:EndpointStream"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -639,11 +639,11 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "28"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "endpoint-link"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:EndpointLink"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "28"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "endpoint-link"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:EndpointLink"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -653,8 +653,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "29"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-x11-bell"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "29"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-x11-bell"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -664,8 +664,8 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "30"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-jackdbus-detect"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "30"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-jackdbus-detect"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -675,10 +675,10 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Node,
|
||||
Version: pipewire.PW_VERSION_NODE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "31"},
|
||||
{Key: "factory.id", Value: "11"},
|
||||
{Key: "priority.driver", Value: "200000"},
|
||||
{Key: "node.name", Value: "Dummy-Driver"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "31"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_ID, Value: "11"},
|
||||
{Key: pipewire.PW_KEY_PRIORITY_DRIVER, Value: "200000"},
|
||||
{Key: pipewire.PW_KEY_NODE_NAME, Value: "Dummy-Driver"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -688,10 +688,10 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Node,
|
||||
Version: pipewire.PW_VERSION_NODE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "32"},
|
||||
{Key: "factory.id", Value: "11"},
|
||||
{Key: "priority.driver", Value: "190000"},
|
||||
{Key: "node.name", Value: "Freewheel-Driver"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "32"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_ID, Value: "11"},
|
||||
{Key: pipewire.PW_KEY_PRIORITY_DRIVER, Value: "190000"},
|
||||
{Key: pipewire.PW_KEY_NODE_NAME, Value: "Freewheel-Driver"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -701,7 +701,7 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Metadata,
|
||||
Version: pipewire.PW_VERSION_METADATA,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "33"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "33"},
|
||||
{Key: "metadata.name", Value: "settings"},
|
||||
},
|
||||
}, nil},
|
||||
@ -712,15 +712,15 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Client,
|
||||
Version: pipewire.PW_VERSION_CLIENT,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "34"},
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "pipewire.sec.pid", Value: "1443"},
|
||||
{Key: "pipewire.sec.uid", Value: "1000"},
|
||||
{Key: "pipewire.sec.gid", Value: "100"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
{Key: "pipewire.access", Value: "unrestricted"},
|
||||
{Key: "application.name", Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_PROTOCOL, Value: "protocol-native"},
|
||||
{Key: pipewire.PW_KEY_SEC_PID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_UID, Value: "1000"},
|
||||
{Key: pipewire.PW_KEY_SEC_GID, Value: "100"},
|
||||
{Key: pipewire.PW_KEY_SEC_SOCKET, Value: "pipewire-0-manager"},
|
||||
{Key: pipewire.PW_KEY_ACCESS, Value: "unrestricted"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "pw-container"},
|
||||
},
|
||||
}, nil},
|
||||
|
||||
@ -730,15 +730,15 @@ func TestRegistryGlobal(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Client,
|
||||
Version: pipewire.PW_VERSION_CLIENT,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "35"},
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "pipewire.sec.pid", Value: "1447"},
|
||||
{Key: "pipewire.sec.uid", Value: "1000"},
|
||||
{Key: "pipewire.sec.gid", Value: "100"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
{Key: "pipewire.access", Value: "unrestricted"},
|
||||
{Key: "application.name", Value: "WirePlumber"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "35"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_PROTOCOL, Value: "protocol-native"},
|
||||
{Key: pipewire.PW_KEY_SEC_PID, Value: "1447"},
|
||||
{Key: pipewire.PW_KEY_SEC_UID, Value: "1000"},
|
||||
{Key: pipewire.PW_KEY_SEC_GID, Value: "100"},
|
||||
{Key: pipewire.PW_KEY_SEC_SOCKET, Value: "pipewire-0-manager"},
|
||||
{Key: pipewire.PW_KEY_ACCESS, Value: "unrestricted"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "WirePlumber"},
|
||||
},
|
||||
}, nil},
|
||||
}.run(t)
|
||||
|
||||
@ -31,18 +31,18 @@ func TestContext(t *testing.T) {
|
||||
|
||||
// Context instance under testing.
|
||||
ctx = pipewire.MustNew(&conn, pipewire.SPADict{
|
||||
{Key: "remote.intention", Value: "manager"},
|
||||
{Key: "application.name", Value: "pw-container"},
|
||||
{Key: "application.process.binary", Value: "pw-container"},
|
||||
{Key: "application.language", Value: "en_US.UTF-8"},
|
||||
{Key: "application.process.id", Value: "1443"},
|
||||
{Key: "application.process.user", Value: "alice"},
|
||||
{Key: "application.process.host", Value: "nixos"},
|
||||
{Key: "application.process.session-id", Value: "1"},
|
||||
{Key: "window.x11.display", Value: ":0"},
|
||||
{Key: pipewire.PW_KEY_REMOTE_INTENTION, Value: "manager"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_BINARY, Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_APP_LANGUAGE, Value: "en_US.UTF-8"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_ID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_USER, Value: "alice"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_HOST, Value: "nixos"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_SESSION_ID, Value: "1"},
|
||||
{Key: pipewire.PW_KEY_WINDOW_X11_DISPLAY, Value: ":0"},
|
||||
{Key: "cpu.vm.name", Value: "qemu"},
|
||||
{Key: "log.level", Value: "0"},
|
||||
{Key: "cpu.max-align", Value: "32"},
|
||||
{Key: pipewire.PW_KEY_CPU_MAX_ALIGN, Value: "32"},
|
||||
{Key: "default.clock.rate", Value: "48000"},
|
||||
{Key: "default.clock.quantum", Value: "1024"},
|
||||
{Key: "default.clock.min-quantum", Value: "32"},
|
||||
@ -59,8 +59,8 @@ func TestContext(t *testing.T) {
|
||||
{Key: "mem.allow-mlock", Value: "true"},
|
||||
{Key: "settings.check-quantum", Value: "false"},
|
||||
{Key: "settings.check-rate", Value: "false"},
|
||||
{Key: "core.version", Value: "1.4.7"},
|
||||
{Key: "core.name", Value: "pipewire-alice-1443"},
|
||||
{Key: pipewire.PW_KEY_CORE_VERSION, Value: "1.4.7"},
|
||||
{Key: pipewire.PW_KEY_CORE_NAME, Value: "pipewire-alice-1443"},
|
||||
})
|
||||
)
|
||||
|
||||
@ -87,20 +87,20 @@ func TestContext(t *testing.T) {
|
||||
Name: "pipewire-0",
|
||||
ChangeMask: pipewire.PW_CORE_CHANGE_MASK_PROPS,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "config.name", Value: "pipewire.conf"},
|
||||
{Key: "application.name", Value: "pipewire"},
|
||||
{Key: "application.process.binary", Value: "pipewire"},
|
||||
{Key: "application.language", Value: "en_US.UTF-8"},
|
||||
{Key: "application.process.id", Value: "1446"},
|
||||
{Key: "application.process.user", Value: "alice"},
|
||||
{Key: "application.process.host", Value: "nixos"},
|
||||
{Key: "window.x11.display", Value: ":0"},
|
||||
{Key: pipewire.PW_KEY_CONFIG_NAME, Value: "pipewire.conf"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "pipewire"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_BINARY, Value: "pipewire"},
|
||||
{Key: pipewire.PW_KEY_APP_LANGUAGE, Value: "en_US.UTF-8"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_ID, Value: "1446"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_USER, Value: "alice"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_HOST, Value: "nixos"},
|
||||
{Key: pipewire.PW_KEY_WINDOW_X11_DISPLAY, Value: ":0"},
|
||||
{Key: "cpu.vm.name", Value: "qemu"},
|
||||
{Key: "link.max-buffers", Value: "16"},
|
||||
{Key: "core.daemon", Value: "true"},
|
||||
{Key: "core.name", Value: "pipewire-0"},
|
||||
{Key: pipewire.PW_KEY_CORE_DAEMON, Value: "true"},
|
||||
{Key: pipewire.PW_KEY_CORE_NAME, Value: "pipewire-0"},
|
||||
{Key: "default.clock.min-quantum", Value: "1024"},
|
||||
{Key: "cpu.max-align", Value: "32"},
|
||||
{Key: pipewire.PW_KEY_CPU_MAX_ALIGN, Value: "32"},
|
||||
{Key: "default.clock.rate", Value: "48000"},
|
||||
{Key: "default.clock.quantum", Value: "1024"},
|
||||
{Key: "default.clock.max-quantum", Value: "2048"},
|
||||
@ -116,8 +116,8 @@ func TestContext(t *testing.T) {
|
||||
{Key: "mem.allow-mlock", Value: "true"},
|
||||
{Key: "settings.check-quantum", Value: "false"},
|
||||
{Key: "settings.check-rate", Value: "false"},
|
||||
{Key: "object.id", Value: "0"},
|
||||
{Key: "object.serial", Value: "0"}},
|
||||
{Key: pipewire.PW_KEY_OBJECT_ID, Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "0"}},
|
||||
}
|
||||
|
||||
wantClient0 := pipewire.Client{
|
||||
@ -125,27 +125,27 @@ func TestContext(t *testing.T) {
|
||||
ID: 34,
|
||||
ChangeMask: pipewire.PW_CLIENT_CHANGE_MASK_PROPS,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "core.name", Value: "pipewire-alice-1443"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
{Key: "pipewire.sec.pid", Value: "1443"},
|
||||
{Key: "pipewire.sec.uid", Value: "1000"},
|
||||
{Key: "pipewire.sec.gid", Value: "100"},
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "object.id", Value: "34"},
|
||||
{Key: "object.serial", Value: "34"},
|
||||
{Key: "remote.intention", Value: "manager"},
|
||||
{Key: "application.name", Value: "pw-container"},
|
||||
{Key: "application.process.binary", Value: "pw-container"},
|
||||
{Key: "application.language", Value: "en_US.UTF-8"},
|
||||
{Key: "application.process.id", Value: "1443"},
|
||||
{Key: "application.process.user", Value: "alice"},
|
||||
{Key: "application.process.host", Value: "nixos"},
|
||||
{Key: "application.process.session-id", Value: "1"},
|
||||
{Key: "window.x11.display", Value: ":0"},
|
||||
{Key: pipewire.PW_KEY_PROTOCOL, Value: "protocol-native"},
|
||||
{Key: pipewire.PW_KEY_CORE_NAME, Value: "pipewire-alice-1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_SOCKET, Value: "pipewire-0-manager"},
|
||||
{Key: pipewire.PW_KEY_SEC_PID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_UID, Value: "1000"},
|
||||
{Key: pipewire.PW_KEY_SEC_GID, Value: "100"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_ID, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_REMOTE_INTENTION, Value: "manager"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_BINARY, Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_APP_LANGUAGE, Value: "en_US.UTF-8"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_ID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_USER, Value: "alice"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_HOST, Value: "nixos"},
|
||||
{Key: pipewire.PW_KEY_APP_PROCESS_SESSION_ID, Value: "1"},
|
||||
{Key: pipewire.PW_KEY_WINDOW_X11_DISPLAY, Value: ":0"},
|
||||
{Key: "cpu.vm.name", Value: "qemu"},
|
||||
{Key: "log.level", Value: "0"},
|
||||
{Key: "cpu.max-align", Value: "32"},
|
||||
{Key: pipewire.PW_KEY_CPU_MAX_ALIGN, Value: "32"},
|
||||
{Key: "default.clock.rate", Value: "48000"},
|
||||
{Key: "default.clock.quantum", Value: "1024"},
|
||||
{Key: "default.clock.min-quantum", Value: "32"},
|
||||
@ -162,18 +162,18 @@ func TestContext(t *testing.T) {
|
||||
{Key: "mem.allow-mlock", Value: "true"},
|
||||
{Key: "settings.check-quantum", Value: "false"},
|
||||
{Key: "settings.check-rate", Value: "false"},
|
||||
{Key: "core.version", Value: "1.4.7"},
|
||||
{Key: "pipewire.access", Value: "unrestricted"},
|
||||
{Key: pipewire.PW_KEY_CORE_VERSION, Value: "1.4.7"},
|
||||
{Key: pipewire.PW_KEY_ACCESS, Value: "unrestricted"},
|
||||
},
|
||||
},
|
||||
Properties: pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "34"},
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "pipewire.sec.pid", Value: "1443"},
|
||||
{Key: "pipewire.sec.uid", Value: "1000"},
|
||||
{Key: "pipewire.sec.gid", Value: "100"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_PROTOCOL, Value: "protocol-native"},
|
||||
{Key: pipewire.PW_KEY_SEC_PID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_UID, Value: "1000"},
|
||||
{Key: pipewire.PW_KEY_SEC_GID, Value: "100"},
|
||||
{Key: pipewire.PW_KEY_SEC_SOCKET, Value: "pipewire-0-manager"},
|
||||
},
|
||||
}
|
||||
|
||||
@ -186,8 +186,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Core,
|
||||
Version: pipewire.PW_VERSION_CORE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "0"},
|
||||
{Key: "core.name", Value: "pipewire-0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "0"},
|
||||
{Key: pipewire.PW_KEY_CORE_NAME, Value: "pipewire-0"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -197,8 +197,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "1"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-rt"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "1"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-rt"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -208,7 +208,7 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_SecurityContext,
|
||||
Version: pipewire.PW_VERSION_SECURITY_CONTEXT,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "3"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -218,8 +218,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "2"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-protocol-native"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-protocol-native"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -229,7 +229,7 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Profiler,
|
||||
Version: pipewire.PW_VERSION_PROFILER,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "5"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "5"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -239,8 +239,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "4"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-profiler"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "4"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-profiler"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -250,8 +250,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "6"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-metadata"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "6"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-metadata"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -261,11 +261,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "7"},
|
||||
{Key: "module.id", Value: "6"},
|
||||
{Key: "factory.name", Value: "metadata"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_Metadata},
|
||||
{Key: "factory.type.version", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "7"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "6"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "metadata"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_Metadata},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "3"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -275,8 +275,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "8"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-spa-device-factory"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "8"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-spa-device-factory"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -286,11 +286,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "9"},
|
||||
{Key: "module.id", Value: "8"},
|
||||
{Key: "factory.name", Value: "spa-device-factory"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_Device},
|
||||
{Key: "factory.type.version", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "9"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "8"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "spa-device-factory"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_Device},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "3"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -300,8 +300,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "10"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-spa-node-factory"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "10"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-spa-node-factory"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -311,11 +311,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "11"},
|
||||
{Key: "module.id", Value: "10"},
|
||||
{Key: "factory.name", Value: "spa-node-factory"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_Node},
|
||||
{Key: "factory.type.version", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "11"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "10"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "spa-node-factory"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_Node},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "3"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -325,8 +325,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "12"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-client-node"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "12"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-client-node"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -336,11 +336,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "13"},
|
||||
{Key: "module.id", Value: "12"},
|
||||
{Key: "factory.name", Value: "client-node"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_ClientNode},
|
||||
{Key: "factory.type.version", Value: "6"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "13"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "12"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "client-node"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_ClientNode},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "6"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -350,8 +350,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "14"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-client-device"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "14"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-client-device"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -361,11 +361,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "15"},
|
||||
{Key: "module.id", Value: "14"},
|
||||
{Key: "factory.name", Value: "client-device"},
|
||||
{Key: "factory.type.name", Value: "Spa:Pointer:Interface:Device"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "15"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "14"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "client-device"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "Spa:Pointer:Interface:Device"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -375,8 +375,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "16"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-portal"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "16"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-portal"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -386,8 +386,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "17"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-access"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "17"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-access"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -397,8 +397,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "18"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-adapter"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "18"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-adapter"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -408,11 +408,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "19"},
|
||||
{Key: "module.id", Value: "18"},
|
||||
{Key: "factory.name", Value: "adapter"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_Node},
|
||||
{Key: "factory.type.version", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "19"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "18"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "adapter"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_Node},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "3"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -422,8 +422,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "20"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-link-factory"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "20"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-link-factory"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -433,11 +433,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "21"},
|
||||
{Key: "module.id", Value: "20"},
|
||||
{Key: "factory.name", Value: "link-factory"},
|
||||
{Key: "factory.type.name", Value: pipewire.PW_TYPE_INTERFACE_Link},
|
||||
{Key: "factory.type.version", Value: "3"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "21"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "20"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "link-factory"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: pipewire.PW_TYPE_INTERFACE_Link},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "3"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -447,8 +447,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "22"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-session-manager"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-session-manager"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -458,11 +458,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "23"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "client-endpoint"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:ClientEndpoint"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "23"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "client-endpoint"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:ClientEndpoint"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -472,11 +472,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "24"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "client-session"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:ClientSession"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "24"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "client-session"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:ClientSession"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -486,11 +486,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "25"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "session"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:Session"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "25"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "session"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:Session"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -500,11 +500,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "26"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "endpoint"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:Endpoint"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "26"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "endpoint"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:Endpoint"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -514,11 +514,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "27"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "endpoint-stream"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:EndpointStream"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "27"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "endpoint-stream"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:EndpointStream"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -528,11 +528,11 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Factory,
|
||||
Version: pipewire.PW_VERSION_FACTORY,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "28"},
|
||||
{Key: "module.id", Value: "22"},
|
||||
{Key: "factory.name", Value: "endpoint-link"},
|
||||
{Key: "factory.type.name", Value: "PipeWire:Interface:EndpointLink"},
|
||||
{Key: "factory.type.version", Value: "0"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "28"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "22"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_NAME, Value: "endpoint-link"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_NAME, Value: "PipeWire:Interface:EndpointLink"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_TYPE_VERSION, Value: "0"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -542,8 +542,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "29"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-x11-bell"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "29"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-x11-bell"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -553,8 +553,8 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Module,
|
||||
Version: pipewire.PW_VERSION_MODULE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "30"},
|
||||
{Key: "module.name", Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-jackdbus-detect"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "30"},
|
||||
{Key: pipewire.PW_KEY_MODULE_NAME, Value: pipewire.PIPEWIRE_MODULE_PREFIX + "module-jackdbus-detect"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -564,10 +564,10 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Node,
|
||||
Version: pipewire.PW_VERSION_NODE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "31"},
|
||||
{Key: "factory.id", Value: "11"},
|
||||
{Key: "priority.driver", Value: "200000"},
|
||||
{Key: "node.name", Value: "Dummy-Driver"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "31"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_ID, Value: "11"},
|
||||
{Key: pipewire.PW_KEY_PRIORITY_DRIVER, Value: "200000"},
|
||||
{Key: pipewire.PW_KEY_NODE_NAME, Value: "Dummy-Driver"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -577,10 +577,10 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Node,
|
||||
Version: pipewire.PW_VERSION_NODE,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "32"},
|
||||
{Key: "factory.id", Value: "11"},
|
||||
{Key: "priority.driver", Value: "190000"},
|
||||
{Key: "node.name", Value: "Freewheel-Driver"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "32"},
|
||||
{Key: pipewire.PW_KEY_FACTORY_ID, Value: "11"},
|
||||
{Key: pipewire.PW_KEY_PRIORITY_DRIVER, Value: "190000"},
|
||||
{Key: pipewire.PW_KEY_NODE_NAME, Value: "Freewheel-Driver"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -590,7 +590,7 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Metadata,
|
||||
Version: pipewire.PW_VERSION_METADATA,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "33"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "33"},
|
||||
{Key: "metadata.name", Value: "settings"},
|
||||
},
|
||||
},
|
||||
@ -601,15 +601,15 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Client,
|
||||
Version: pipewire.PW_VERSION_CLIENT,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "34"},
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "pipewire.sec.pid", Value: "1443"},
|
||||
{Key: "pipewire.sec.uid", Value: "1000"},
|
||||
{Key: "pipewire.sec.gid", Value: "100"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
{Key: "pipewire.access", Value: "unrestricted"},
|
||||
{Key: "application.name", Value: "pw-container"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "34"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_PROTOCOL, Value: "protocol-native"},
|
||||
{Key: pipewire.PW_KEY_SEC_PID, Value: "1443"},
|
||||
{Key: pipewire.PW_KEY_SEC_UID, Value: "1000"},
|
||||
{Key: pipewire.PW_KEY_SEC_GID, Value: "100"},
|
||||
{Key: pipewire.PW_KEY_SEC_SOCKET, Value: "pipewire-0-manager"},
|
||||
{Key: pipewire.PW_KEY_ACCESS, Value: "unrestricted"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "pw-container"},
|
||||
},
|
||||
},
|
||||
|
||||
@ -619,15 +619,15 @@ func TestContext(t *testing.T) {
|
||||
Type: pipewire.PW_TYPE_INTERFACE_Client,
|
||||
Version: pipewire.PW_VERSION_CLIENT,
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "object.serial", Value: "35"},
|
||||
{Key: "module.id", Value: "2"},
|
||||
{Key: "pipewire.protocol", Value: "protocol-native"},
|
||||
{Key: "pipewire.sec.pid", Value: "1447"},
|
||||
{Key: "pipewire.sec.uid", Value: "1000"},
|
||||
{Key: "pipewire.sec.gid", Value: "100"},
|
||||
{Key: "pipewire.sec.socket", Value: "pipewire-0-manager"},
|
||||
{Key: "pipewire.access", Value: "unrestricted"},
|
||||
{Key: "application.name", Value: "WirePlumber"},
|
||||
{Key: pipewire.PW_KEY_OBJECT_SERIAL, Value: "35"},
|
||||
{Key: pipewire.PW_KEY_MODULE_ID, Value: "2"},
|
||||
{Key: pipewire.PW_KEY_PROTOCOL, Value: "protocol-native"},
|
||||
{Key: pipewire.PW_KEY_SEC_PID, Value: "1447"},
|
||||
{Key: pipewire.PW_KEY_SEC_UID, Value: "1000"},
|
||||
{Key: pipewire.PW_KEY_SEC_GID, Value: "100"},
|
||||
{Key: pipewire.PW_KEY_SEC_SOCKET, Value: "pipewire-0-manager"},
|
||||
{Key: pipewire.PW_KEY_ACCESS, Value: "unrestricted"},
|
||||
{Key: pipewire.PW_KEY_APP_NAME, Value: "WirePlumber"},
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -675,8 +675,8 @@ func TestContext(t *testing.T) {
|
||||
}
|
||||
|
||||
if err := securityContext.Create(21, 20, pipewire.SPADict{
|
||||
{Key: "pipewire.sec.engine", Value: "org.flatpak"},
|
||||
{Key: "pipewire.access", Value: "restricted"},
|
||||
{Key: pipewire.PW_KEY_SEC_ENGINE, Value: "org.flatpak"},
|
||||
{Key: pipewire.PW_KEY_ACCESS, Value: "restricted"},
|
||||
}); err != nil {
|
||||
t.Fatalf("SecurityContext.Create: error = %v", err)
|
||||
}
|
||||
|
||||
@ -13,8 +13,8 @@ func TestSecurityContextCreate(t *testing.T) {
|
||||
{"sample", samplePWContainer[6][0][1], pipewire.SecurityContextCreate{
|
||||
ListenFd: 1 /* 21: duplicated from listen_fd */, CloseFd: 0, /* 20: duplicated from close_fd */
|
||||
Properties: &pipewire.SPADict{
|
||||
{Key: "pipewire.sec.engine", Value: "org.flatpak"},
|
||||
{Key: "pipewire.access", Value: "restricted"},
|
||||
{Key: pipewire.PW_KEY_SEC_ENGINE, Value: "org.flatpak"},
|
||||
{Key: pipewire.PW_KEY_ACCESS, Value: "restricted"},
|
||||
},
|
||||
}, nil},
|
||||
}.run(t)
|
||||
|
||||
@ -543,3 +543,295 @@ const (
|
||||
PW_TYPE_INFO_Interface = PW_TYPE_INFO_BASE + "Interface"
|
||||
PW_TYPE_INFO_INTERFACE_BASE = PW_TYPE_INFO_Interface + ":"
|
||||
)
|
||||
|
||||
/* pipewire/keys.h */
|
||||
|
||||
/**
|
||||
* Key Names
|
||||
*
|
||||
* A collection of keys that are used to add extra information on objects.
|
||||
*
|
||||
* Keys that start with "pipewire." are in general set-once and then
|
||||
* read-only. They are usually used for security sensitive information that
|
||||
* needs to be fixed.
|
||||
*
|
||||
* Properties from other objects can also appear. This usually suggests some
|
||||
* sort of parent/child or owner/owned relationship.
|
||||
*
|
||||
*/
|
||||
|
||||
const (
|
||||
PW_KEY_PROTOCOL = "pipewire.protocol" /* protocol used for connection */
|
||||
PW_KEY_ACCESS = "pipewire.access" /* how the client access is controlled */
|
||||
PW_KEY_CLIENT_ACCESS = "pipewire.client.access" /* how the client wants to be access controlled */
|
||||
|
||||
/** Various keys related to the identity of a client process and its security.
|
||||
* Must be obtained from trusted sources by the protocol and placed as
|
||||
* read-only properties. */
|
||||
|
||||
PW_KEY_SEC_PID = "pipewire.sec.pid" /* Client pid, set by protocol */
|
||||
PW_KEY_SEC_UID = "pipewire.sec.uid" /* Client uid, set by protocol*/
|
||||
PW_KEY_SEC_GID = "pipewire.sec.gid" /* client gid, set by protocol*/
|
||||
PW_KEY_SEC_LABEL = "pipewire.sec.label" /* client security label, set by protocol*/
|
||||
|
||||
PW_KEY_SEC_SOCKET = "pipewire.sec.socket" /* client socket name, set by protocol */
|
||||
|
||||
PW_KEY_SEC_ENGINE = "pipewire.sec.engine" /* client secure context engine, set by protocol. This can also be set by a client when making a new security context. */
|
||||
PW_KEY_SEC_APP_ID = "pipewire.sec.app-id" /* client secure application id */
|
||||
PW_KEY_SEC_INSTANCE_ID = "pipewire.sec.instance-id" /* client secure instance id */
|
||||
|
||||
PW_KEY_LIBRARY_NAME_SYSTEM = "library.name.system" /* name of the system library to use */
|
||||
PW_KEY_LIBRARY_NAME_LOOP = "library.name.loop" /* name of the loop library to use */
|
||||
PW_KEY_LIBRARY_NAME_DBUS = "library.name.dbus" /* name of the dbus library to use */
|
||||
|
||||
/** object properties */
|
||||
|
||||
PW_KEY_OBJECT_PATH = "object.path" /* unique path to construct the object */
|
||||
PW_KEY_OBJECT_ID = "object.id" /* a global object id */
|
||||
PW_KEY_OBJECT_SERIAL = "object.serial" /* a 64 bit object serial number. This is a number incremented for each object that is created. The lower 32 bits are guaranteed to never be SPA_ID_INVALID. */
|
||||
PW_KEY_OBJECT_LINGER = "object.linger" /* the object lives on even after the client that created it has been destroyed */
|
||||
PW_KEY_OBJECT_REGISTER = "object.register" /* If the object should be registered. */
|
||||
PW_KEY_OBJECT_EXPORT = "object.export" /* If the object should be exported, since 0.3.72 */
|
||||
|
||||
/* config */
|
||||
|
||||
PW_KEY_CONFIG_PREFIX = "config.prefix" /* a config prefix directory */
|
||||
PW_KEY_CONFIG_NAME = "config.name" /* a config file name */
|
||||
PW_KEY_CONFIG_OVERRIDE_PREFIX = "config.override.prefix" /* a config override prefix directory */
|
||||
PW_KEY_CONFIG_OVERRIDE_NAME = "config.override.name" /* a config override file name */
|
||||
|
||||
/* loop */
|
||||
|
||||
PW_KEY_LOOP_NAME = "loop.name" /* the name of a loop */
|
||||
PW_KEY_LOOP_CLASS = "loop.class" /* the classes this loop handles, array of strings */
|
||||
PW_KEY_LOOP_RT_PRIO = "loop.rt-prio" /* realtime priority of the loop */
|
||||
PW_KEY_LOOP_CANCEL = "loop.cancel" /* if the loop can be canceled */
|
||||
|
||||
/* context */
|
||||
|
||||
PW_KEY_CONTEXT_PROFILE_MODULES = "context.profile.modules" /* a context profile for modules, deprecated */
|
||||
PW_KEY_USER_NAME = "context.user-name" /* The user name that runs pipewire */
|
||||
PW_KEY_HOST_NAME = "context.host-name" /* The host name of the machine */
|
||||
|
||||
/* core */
|
||||
|
||||
PW_KEY_CORE_NAME = "core.name" /* The name of the core. Default is `pipewire-<username>-<pid>`, overwritten by env(PIPEWIRE_CORE) */
|
||||
PW_KEY_CORE_VERSION = "core.version" /* The version of the core. */
|
||||
PW_KEY_CORE_DAEMON = "core.daemon" /* If the core is listening for connections. */
|
||||
|
||||
PW_KEY_CORE_ID = "core.id" /* the core id */
|
||||
PW_KEY_CORE_MONITORS = "core.monitors" /* the apis monitored by core. */
|
||||
|
||||
/* cpu */
|
||||
|
||||
PW_KEY_CPU_MAX_ALIGN = "cpu.max-align" /* maximum alignment needed to support all CPU optimizations */
|
||||
PW_KEY_CPU_CORES = "cpu.cores" /* number of cores */
|
||||
|
||||
/* priorities */
|
||||
|
||||
PW_KEY_PRIORITY_SESSION = "priority.session" /* priority in session manager */
|
||||
PW_KEY_PRIORITY_DRIVER = "priority.driver" /* priority to be a driver */
|
||||
|
||||
/* remote keys */
|
||||
|
||||
PW_KEY_REMOTE_NAME = "remote.name" /* The name of the remote to connect to, default pipewire-0, overwritten by env(PIPEWIRE_REMOTE). May also be a SPA-JSON array of sockets, to be tried in order. The "internal" remote name and "generic" intention connects to the local PipeWire instance. */
|
||||
PW_KEY_REMOTE_INTENTION = "remote.intention" /* The intention of the remote connection, "generic", "screencast", "manager" */
|
||||
|
||||
/** application keys */
|
||||
|
||||
PW_KEY_APP_NAME = "application.name" /* application name. Ex: "Totem Music Player" */
|
||||
PW_KEY_APP_ID = "application.id" /* a textual id for identifying an application logically. Ex: "org.gnome.Totem" */
|
||||
PW_KEY_APP_VERSION = "application.version" /* application version. Ex: "1.2.0" */
|
||||
PW_KEY_APP_ICON = "application.icon" /* aa base64 blob with PNG image data */
|
||||
PW_KEY_APP_ICON_NAME = "application.icon-name" /* an XDG icon name for the application. Ex: "totem" */
|
||||
PW_KEY_APP_LANGUAGE = "application.language" /* application language if applicable, in standard POSIX format. Ex: "en_GB" */
|
||||
|
||||
PW_KEY_APP_PROCESS_ID = "application.process.id" /* process id (pid)*/
|
||||
PW_KEY_APP_PROCESS_BINARY = "application.process.binary" /* binary name */
|
||||
PW_KEY_APP_PROCESS_USER = "application.process.user" /* user name */
|
||||
PW_KEY_APP_PROCESS_HOST = "application.process.host" /* host name */
|
||||
PW_KEY_APP_PROCESS_MACHINE_ID = "application.process.machine-id" /* the D-Bus host id the application runs on */
|
||||
PW_KEY_APP_PROCESS_SESSION_ID = "application.process.session-id" /* login session of the application, on Unix the value of $XDG_SESSION_ID. */
|
||||
|
||||
/** window system */
|
||||
|
||||
PW_KEY_WINDOW_X11_DISPLAY = "window.x11.display" /* the X11 display string. Ex. ":0.0" */
|
||||
|
||||
/** Client properties */
|
||||
|
||||
PW_KEY_CLIENT_ID = "client.id" /* a client id */
|
||||
PW_KEY_CLIENT_NAME = "client.name" /* the client name */
|
||||
PW_KEY_CLIENT_API = "client.api" /* the client api used to access PipeWire */
|
||||
|
||||
/** Node keys */
|
||||
|
||||
PW_KEY_NODE_ID = "node.id" /* node id */
|
||||
PW_KEY_NODE_NAME = "node.name" /* node name */
|
||||
PW_KEY_NODE_NICK = "node.nick" /* short node name */
|
||||
PW_KEY_NODE_DESCRIPTION = "node.description" /* localized human readable node one-line description. Ex. "Foobar USB Headset" */
|
||||
PW_KEY_NODE_PLUGGED = "node.plugged" /* when the node was created. As a uint64 in nanoseconds. */
|
||||
|
||||
PW_KEY_NODE_SESSION = "node.session" /* the session id this node is part of */
|
||||
PW_KEY_NODE_GROUP = "node.group" /* the group id this node is part of. Nodes in the same group are always scheduled with the same driver. Can be an array of group names. */
|
||||
PW_KEY_NODE_SYNC_GROUP = "node.sync-group" /* the sync group this node is part of. Nodes in the same sync group are always scheduled together with the same driver when the sync is active. Can be an array of sync names. */
|
||||
PW_KEY_NODE_SYNC = "node.sync" /* if the sync-group is active or not */
|
||||
PW_KEY_NODE_TRANSPORT = "node.transport" /* if the transport is active or not */
|
||||
PW_KEY_NODE_EXCLUSIVE = "node.exclusive" /* node wants exclusive access to resources */
|
||||
PW_KEY_NODE_AUTOCONNECT = "node.autoconnect" /* node wants to be automatically connected to a compatible node */
|
||||
PW_KEY_NODE_LATENCY = "node.latency" /* the requested latency of the node as a fraction. Ex: 128/48000 */
|
||||
PW_KEY_NODE_MAX_LATENCY = "node.max-latency" /* the maximum supported latency of the node as a fraction. Ex: 1024/48000 */
|
||||
PW_KEY_NODE_LOCK_QUANTUM = "node.lock-quantum" /* don't change quantum when this node is active */
|
||||
PW_KEY_NODE_FORCE_QUANTUM = "node.force-quantum" /* force a quantum while the node is active */
|
||||
PW_KEY_NODE_RATE = "node.rate" /* the requested rate of the graph as a fraction. Ex: 1/48000 */
|
||||
PW_KEY_NODE_LOCK_RATE = "node.lock-rate" /* don't change rate when this node is active */
|
||||
PW_KEY_NODE_FORCE_RATE = "node.force-rate" /* force a rate while the node is active. A value of 0 takes the denominator of node.rate */
|
||||
|
||||
PW_KEY_NODE_DONT_RECONNECT = "node.dont-reconnect" /* don't reconnect this node. The node is initially linked to target.object or the default node. If the target is removed, the node is destroyed */
|
||||
PW_KEY_NODE_ALWAYS_PROCESS = "node.always-process" /* process even when unlinked */
|
||||
PW_KEY_NODE_WANT_DRIVER = "node.want-driver" /* the node wants to be grouped with a driver node in order to schedule the graph. */
|
||||
PW_KEY_NODE_PAUSE_ON_IDLE = "node.pause-on-idle" /* pause the node when idle */
|
||||
PW_KEY_NODE_SUSPEND_ON_IDLE = "node.suspend-on-idle" /* suspend the node when idle */
|
||||
PW_KEY_NODE_CACHE_PARAMS = "node.cache-params" /* cache the node params */
|
||||
PW_KEY_NODE_TRANSPORT_SYNC = "node.transport.sync" /* the node handles transport sync */
|
||||
PW_KEY_NODE_DRIVER = "node.driver" /* node can drive the graph. When the node is selected as the driver, it needs to start the graph periodically. */
|
||||
PW_KEY_NODE_SUPPORTS_LAZY = "node.supports-lazy" /* the node can be a lazy driver. It will listen to RequestProcess commands and take them into account when deciding to start the graph. A value of 0 disables support, a value of > 0 enables with increasing preference. */
|
||||
PW_KEY_NODE_SUPPORTS_REQUEST = "node.supports-request" /* The node supports emiting RequestProcess events when it wants the graph to be scheduled. A value of 0 disables support, a value of > 0 enables with increasing preference. */
|
||||
PW_KEY_NODE_DRIVER_ID = "node.driver-id" /* the node id of the node assigned as driver for this node */
|
||||
PW_KEY_NODE_ASYNC = "node.async" /* the node wants async scheduling */
|
||||
PW_KEY_NODE_LOOP_NAME = "node.loop.name" /* the loop name fnmatch pattern to run in */
|
||||
PW_KEY_NODE_LOOP_CLASS = "node.loop.class" /* the loop class fnmatch pattern to run in */
|
||||
PW_KEY_NODE_STREAM = "node.stream" /* node is a stream, the server side should add a converter */
|
||||
PW_KEY_NODE_VIRTUAL = "node.virtual" /* the node is some sort of virtual object */
|
||||
PW_KEY_NODE_PASSIVE = "node.passive" /* indicate that a node wants passive links on output/input/all ports when the value is "out"/"in"/"true" respectively */
|
||||
PW_KEY_NODE_LINK_GROUP = "node.link-group" /* the node is internally linked to nodes with the same link-group. Can be an array of group names. */
|
||||
PW_KEY_NODE_NETWORK = "node.network" /* the node is on a network */
|
||||
PW_KEY_NODE_TRIGGER = "node.trigger" /* the node is not scheduled automatically based on the dependencies in the graph but it will be triggered explicitly. */
|
||||
PW_KEY_NODE_CHANNELNAMES = "node.channel-names" /* names of node's channels (unrelated to positions) */
|
||||
PW_KEY_NODE_DEVICE_PORT_NAME_PREFIX = "node.device-port-name-prefix" /* override port name prefix for device ports, like capture and playback or disable the prefix completely if an empty string is provided */
|
||||
PW_KEY_NODE_PHYSICAL = "node.physical" /* ports from the node are physical */
|
||||
PW_KEY_NODE_TERMINAL = "node.terminal" /* ports from the node are terminal */
|
||||
|
||||
PW_KEY_NODE_RELIABLE = "node.reliable" /* node uses reliable transport 1.6.0 */
|
||||
|
||||
/** Port keys */
|
||||
|
||||
PW_KEY_PORT_ID = "port.id" /* port id */
|
||||
PW_KEY_PORT_NAME = "port.name" /* port name */
|
||||
PW_KEY_PORT_DIRECTION = "port.direction" /* the port direction, one of "in" or "out" or "control" and "notify" for control ports */
|
||||
PW_KEY_PORT_ALIAS = "port.alias" /* port alias */
|
||||
PW_KEY_PORT_PHYSICAL = "port.physical" /* if this is a physical port */
|
||||
PW_KEY_PORT_TERMINAL = "port.terminal" /* if this port consumes the data */
|
||||
PW_KEY_PORT_CONTROL = "port.control" /* if this port is a control port */
|
||||
PW_KEY_PORT_MONITOR = "port.monitor" /* if this port is a monitor port */
|
||||
PW_KEY_PORT_CACHE_PARAMS = "port.cache-params" /* cache the node port params */
|
||||
PW_KEY_PORT_EXTRA = "port.extra" /* api specific extra port info, API name should be prefixed. "jack:flags:56" */
|
||||
PW_KEY_PORT_PASSIVE = "port.passive" /* the ports wants passive links, since 0.3.67 */
|
||||
PW_KEY_PORT_IGNORE_LATENCY = "port.ignore-latency" /* latency ignored by peers, since 0.3.71 */
|
||||
PW_KEY_PORT_GROUP = "port.group" /* the port group of the port 1.2.0 */
|
||||
PW_KEY_PORT_EXCLUSIVE = "port.exclusive" /* link port only once 1.6.0 */
|
||||
PW_KEY_PORT_RELIABLE = "port.reliable" /* port uses reliable transport 1.6.0 */
|
||||
|
||||
/** link properties */
|
||||
|
||||
PW_KEY_LINK_ID = "link.id" /* a link id */
|
||||
PW_KEY_LINK_INPUT_NODE = "link.input.node" /* input node id of a link */
|
||||
PW_KEY_LINK_INPUT_PORT = "link.input.port" /* input port id of a link */
|
||||
PW_KEY_LINK_OUTPUT_NODE = "link.output.node" /* output node id of a link */
|
||||
PW_KEY_LINK_OUTPUT_PORT = "link.output.port" /* output port id of a link */
|
||||
PW_KEY_LINK_PASSIVE = "link.passive" /* indicate that a link is passive and does not cause the graph to be runnable. */
|
||||
PW_KEY_LINK_FEEDBACK = "link.feedback" /* indicate that a link is a feedback link and the target will receive data in the next cycle */
|
||||
PW_KEY_LINK_ASYNC = "link.async" /* the link is using async io */
|
||||
|
||||
/** device properties */
|
||||
|
||||
PW_KEY_DEVICE_ID = "device.id" /* device id */
|
||||
PW_KEY_DEVICE_NAME = "device.name" /* device name */
|
||||
PW_KEY_DEVICE_PLUGGED = "device.plugged" /* when the device was created. As a uint64 in nanoseconds. */
|
||||
PW_KEY_DEVICE_NICK = "device.nick" /* a short device nickname */
|
||||
PW_KEY_DEVICE_STRING = "device.string" /* device string in the underlying layer's format. Ex. "surround51:0" */
|
||||
PW_KEY_DEVICE_API = "device.api" /* API this device is accessed with. Ex. "alsa", "v4l2" */
|
||||
PW_KEY_DEVICE_DESCRIPTION = "device.description" /* localized human readable device one-line description. Ex. "Foobar USB Headset" */
|
||||
PW_KEY_DEVICE_BUS_PATH = "device.bus-path" /* bus path to the device in the OS' format. Ex. "pci-0000:00:14.0-usb-0:3.2:1.0" */
|
||||
PW_KEY_DEVICE_SERIAL = "device.serial" /* Serial number if applicable */
|
||||
PW_KEY_DEVICE_VENDOR_ID = "device.vendor.id" /* vendor ID if applicable */
|
||||
PW_KEY_DEVICE_VENDOR_NAME = "device.vendor.name" /* vendor name if applicable */
|
||||
PW_KEY_DEVICE_PRODUCT_ID = "device.product.id" /* product ID if applicable */
|
||||
PW_KEY_DEVICE_PRODUCT_NAME = "device.product.name" /* product name if applicable */
|
||||
PW_KEY_DEVICE_CLASS = "device.class" /* device class */
|
||||
PW_KEY_DEVICE_FORM_FACTOR = "device.form-factor" /* form factor if applicable. One of "internal", "speaker", "handset", "tv", "webcam", "microphone", "headset", "headphone", "hands-free", "car", "hifi", "computer", "portable" */
|
||||
PW_KEY_DEVICE_BUS = "device.bus" /* bus of the device if applicable. One of "isa", "pci", "usb", "firewire", "bluetooth" */
|
||||
PW_KEY_DEVICE_SUBSYSTEM = "device.subsystem" /* device subsystem */
|
||||
PW_KEY_DEVICE_SYSFS_PATH = "device.sysfs.path" /* device sysfs path */
|
||||
PW_KEY_DEVICE_ICON = "device.icon" /* icon for the device. A base64 blob containing PNG image data */
|
||||
PW_KEY_DEVICE_ICON_NAME = "device.icon-name" /* an XDG icon name for the device. Ex. "sound-card-speakers-usb" */
|
||||
PW_KEY_DEVICE_INTENDED_ROLES = "device.intended-roles" /* intended use. A space separated list of roles (see PW_KEY_MEDIA_ROLE) this device is particularly well suited for, due to latency, quality or form factor. */
|
||||
PW_KEY_DEVICE_CACHE_PARAMS = "device.cache-params" /* cache the device spa params */
|
||||
|
||||
/** module properties */
|
||||
|
||||
PW_KEY_MODULE_ID = "module.id" /* the module id */
|
||||
PW_KEY_MODULE_NAME = "module.name" /* the name of the module */
|
||||
PW_KEY_MODULE_AUTHOR = "module.author" /* the author's name */
|
||||
PW_KEY_MODULE_DESCRIPTION = "module.description" /* a human readable one-line description of the module's purpose.*/
|
||||
PW_KEY_MODULE_USAGE = "module.usage" /* a human readable usage description of the module's arguments. */
|
||||
PW_KEY_MODULE_VERSION = "module.version" /* a version string for the module. */
|
||||
PW_KEY_MODULE_DEPRECATED = "module.deprecated" /* the module is deprecated with this message */
|
||||
|
||||
/** Factory properties */
|
||||
|
||||
PW_KEY_FACTORY_ID = "factory.id" /* the factory id */
|
||||
PW_KEY_FACTORY_NAME = "factory.name" /* the name of the factory */
|
||||
PW_KEY_FACTORY_USAGE = "factory.usage" /* the usage of the factory */
|
||||
PW_KEY_FACTORY_TYPE_NAME = "factory.type.name" /* the name of the type created by a factory */
|
||||
PW_KEY_FACTORY_TYPE_VERSION = "factory.type.version" /* the version of the type created by a factory */
|
||||
|
||||
/** Stream properties */
|
||||
|
||||
PW_KEY_STREAM_IS_LIVE = "stream.is-live" /* Indicates that the stream is live. */
|
||||
PW_KEY_STREAM_LATENCY_MIN = "stream.latency.min" /* The minimum latency of the stream. */
|
||||
PW_KEY_STREAM_LATENCY_MAX = "stream.latency.max" /* The maximum latency of the stream */
|
||||
PW_KEY_STREAM_MONITOR = "stream.monitor" /* Indicates that the stream is monitoring and might select a less accurate but faster conversion algorithm. Monitor streams are also ignored when calculating the latency of their peer ports (since 0.3.71).
|
||||
*/
|
||||
PW_KEY_STREAM_DONT_REMIX = "stream.dont-remix" /* don't remix channels */
|
||||
PW_KEY_STREAM_CAPTURE_SINK = "stream.capture.sink" /* Try to capture the sink output instead of source output */
|
||||
|
||||
/** Media */
|
||||
|
||||
PW_KEY_MEDIA_TYPE = "media.type" /* Media type, one of Audio, Video, Midi */
|
||||
PW_KEY_MEDIA_CATEGORY = "media.category" /* Media Category: Playback, Capture, Duplex, Monitor, Manager */
|
||||
PW_KEY_MEDIA_ROLE = "media.role" /* Role: Movie, Music, Camera, Screen, Communication, Game, Notification, DSP, Production, Accessibility, Test */
|
||||
PW_KEY_MEDIA_CLASS = "media.class" /* class Ex: "Video/Source" */
|
||||
PW_KEY_MEDIA_NAME = "media.name" /* media name. Ex: "Pink Floyd: Time" */
|
||||
PW_KEY_MEDIA_TITLE = "media.title" /* title. Ex: "Time" */
|
||||
PW_KEY_MEDIA_ARTIST = "media.artist" /* artist. Ex: "Pink Floyd" */
|
||||
PW_KEY_MEDIA_ALBUM = "media.album" /* album. Ex: "Dark Side of the Moon" */
|
||||
PW_KEY_MEDIA_COPYRIGHT = "media.copyright" /* copyright string */
|
||||
PW_KEY_MEDIA_SOFTWARE = "media.software" /* generator software */
|
||||
PW_KEY_MEDIA_LANGUAGE = "media.language" /* language in POSIX format. Ex: en_GB */
|
||||
PW_KEY_MEDIA_FILENAME = "media.filename" /* filename */
|
||||
PW_KEY_MEDIA_ICON = "media.icon" /* icon for the media, a base64 blob with PNG image data */
|
||||
PW_KEY_MEDIA_ICON_NAME = "media.icon-name" /* an XDG icon name for the media. Ex: "audio-x-mp3" */
|
||||
PW_KEY_MEDIA_COMMENT = "media.comment" /* extra comment */
|
||||
PW_KEY_MEDIA_DATE = "media.date" /* date of the media */
|
||||
PW_KEY_MEDIA_FORMAT = "media.format" /* format of the media */
|
||||
|
||||
/** format related properties */
|
||||
|
||||
PW_KEY_FORMAT_DSP = "format.dsp" /* a dsp format. Ex: "32 bit float mono audio" */
|
||||
|
||||
/** audio related properties */
|
||||
|
||||
PW_KEY_AUDIO_CHANNEL = "audio.channel" /* an audio channel. Ex: "FL" */
|
||||
PW_KEY_AUDIO_RATE = "audio.rate" /* an audio samplerate */
|
||||
PW_KEY_AUDIO_CHANNELS = "audio.channels" /* number of audio channels */
|
||||
PW_KEY_AUDIO_FORMAT = "audio.format" /* an audio format. Ex: "S16LE" */
|
||||
PW_KEY_AUDIO_ALLOWED_RATES = "audio.allowed-rates" /* a list of allowed samplerates ex. "[ 44100 48000 ]" */
|
||||
|
||||
/** video related properties */
|
||||
|
||||
PW_KEY_VIDEO_RATE = "video.framerate" /* a video framerate */
|
||||
PW_KEY_VIDEO_FORMAT = "video.format" /* a video format */
|
||||
PW_KEY_VIDEO_SIZE = "video.size" /* a video size as "<width>x<height" */
|
||||
|
||||
PW_KEY_TARGET_OBJECT = "target.object" /* a target object to link to. This can be and object name or object.serial */
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user