diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-14 09:31:50 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-14 09:31:50 +0900 |
| commit | 30dcab07340610bfd6d015e10022b9ca2a27bb51 (patch) | |
| tree | e180eeaa8c2788b95100d2ce10ce2bbf38abb04d | |
| parent | 0ea051062b127717bba2b28870a50f62825b55c4 (diff) | |
internal/pipewire: SecurityContext as destructible
This proxy can be destroyed by sending a Core::Destroy targeting it. This change implements the Destroy method by embedding destructible.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/pipewire/securitycontext.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/pipewire/securitycontext.go b/internal/pipewire/securitycontext.go index ec28d753..21123f19 100644 --- a/internal/pipewire/securitycontext.go +++ b/internal/pipewire/securitycontext.go @@ -92,7 +92,7 @@ type SecurityContext struct { ctx *Context - removable + destructible } // GetSecurityContext queues a [RegistryBind] message for the PipeWire server @@ -217,4 +217,9 @@ func (securityContext *SecurityContext) setBoundProps(event *CoreBoundProps) err return nil } +// Destroy destroys this [SecurityContext] proxy. +func (securityContext *SecurityContext) Destroy() error { + return securityContext.destroy(securityContext.ctx, securityContext.ID) +} + func (securityContext *SecurityContext) String() string { return PW_TYPE_INTERFACE_SecurityContext } |
