diff options
Diffstat (limited to 'internal/system/dispatcher.go')
| -rw-r--r-- | internal/system/dispatcher.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/system/dispatcher.go b/internal/system/dispatcher.go index 1641c3ed..eae92477 100644 --- a/internal/system/dispatcher.go +++ b/internal/system/dispatcher.go @@ -10,6 +10,7 @@ import ( "hakurei.app/hst" "hakurei.app/internal/acl" "hakurei.app/internal/dbus" + "hakurei.app/internal/pipewire" "hakurei.app/internal/wayland" "hakurei.app/internal/xcb" ) @@ -47,8 +48,12 @@ type syscallDispatcher interface { // aclUpdate provides [acl.Update]. aclUpdate(name string, uid int, perms ...acl.Perm) error + // waylandNew provides [wayland.New]. waylandNew(displayPath, bindPath *check.Absolute, appID, instanceID string) (io.Closer, error) + // pipewireConnect provides [pipewire.Connect]. + pipewireConnect() (*pipewire.Context, error) + // xcbChangeHosts provides [xcb.ChangeHosts]. xcbChangeHosts(mode xcb.HostMode, family xcb.Family, address string) error @@ -84,6 +89,8 @@ func (k direct) waylandNew(displayPath, bindPath *check.Absolute, appID, instanc return wayland.New(displayPath, bindPath, appID, instanceID) } +func (k direct) pipewireConnect() (*pipewire.Context, error) { return pipewire.Connect(true) } + func (k direct) xcbChangeHosts(mode xcb.HostMode, family xcb.Family, address string) error { return xcb.ChangeHosts(mode, family, address) } |
