aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/dispatcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/dispatcher.go')
-rw-r--r--system/dispatcher.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/dispatcher.go b/system/dispatcher.go
index 502c8e92..f8de2ff9 100644
--- a/system/dispatcher.go
+++ b/system/dispatcher.go
@@ -7,6 +7,7 @@ import (
"hakurei.app/system/acl"
"hakurei.app/system/dbus"
+ "hakurei.app/system/internal/xcb"
)
type osFile interface {
@@ -39,6 +40,9 @@ type syscallDispatcher interface {
// aclUpdate provides [acl.Update].
aclUpdate(name string, uid int, perms ...acl.Perm) error
+ // xcbChangeHosts provides [xcb.ChangeHosts].
+ xcbChangeHosts(mode xcb.HostMode, family xcb.Family, address string) error
+
// dbusAddress provides [dbus.Address].
dbusAddress() (session, system string)
// dbusFinalise provides [dbus.Finalise].
@@ -71,6 +75,10 @@ func (k direct) aclUpdate(name string, uid int, perms ...acl.Perm) error {
return acl.Update(name, uid, perms...)
}
+func (k direct) xcbChangeHosts(mode xcb.HostMode, family xcb.Family, address string) error {
+ return xcb.ChangeHosts(mode, family, address)
+}
+
func (k direct) dbusAddress() (session, system string) {
return dbus.Address()
}