diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-05 03:27:22 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-05 03:27:30 +0900 |
| commit | d5509cc6e54282f048389d8dcfd731fa5a4f3b09 (patch) | |
| tree | 6499ea983018ac78f7158131f88a90af073e02c4 /internal/pipewire/securitycontext_test.go | |
| parent | 0d3ae6cb23b28c1aa0bc3594483c0d90b16c3033 (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/securitycontext_test.go')
| -rw-r--r-- | internal/pipewire/securitycontext_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
