From d5509cc6e54282f048389d8dcfd731fa5a4f3b09 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 5 Dec 2025 03:27:22 +0900 Subject: internal/pipewire: constants from pipewire/keys.h 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 --- internal/pipewire/securitycontext_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/pipewire/securitycontext_test.go') diff --git a/internal/pipewire/securitycontext_test.go b/internal/pipewire/securitycontext_test.go index 397107ba..26b1b29e 100644 --- a/internal/pipewire/securitycontext_test.go +++ b/internal/pipewire/securitycontext_test.go @@ -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) -- cgit v1.3.1