diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-07 19:01:18 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-07 19:03:51 +0900 |
| commit | d23b4dc9e64d3f00e746c65f3038a1a6de44b8f5 (patch) | |
| tree | 46e7f73bc2b06047561588294759ddb8a71184f2 /system/dispatcher.go | |
| parent | 3ce63e95d7691450f7b368e639d984a223a764b1 (diff) | |
hst/dbus: move dbus config struct
This allows holding a xdg-dbus-proxy configuration without importing system/dbus.
It also makes more sense in the project structure since the config struct is part of the hst API however the rest of the implementation is not.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/dispatcher.go')
| -rw-r--r-- | system/dispatcher.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/system/dispatcher.go b/system/dispatcher.go index 38aab881..3f17dc1a 100644 --- a/system/dispatcher.go +++ b/system/dispatcher.go @@ -6,6 +6,7 @@ import ( "log" "os" + "hakurei.app/hst" "hakurei.app/system/acl" "hakurei.app/system/dbus" "hakurei.app/system/internal/xcb" @@ -50,7 +51,7 @@ type syscallDispatcher interface { // dbusAddress provides [dbus.Address]. dbusAddress() (session, system string) // dbusFinalise provides [dbus.Finalise]. - dbusFinalise(sessionBus, systemBus dbus.ProxyPair, session, system *dbus.Config) (final *dbus.Final, err error) + dbusFinalise(sessionBus, systemBus dbus.ProxyPair, session, system *hst.BusConfig) (final *dbus.Final, err error) // dbusProxyStart provides the Start method of [dbus.Proxy]. dbusProxyStart(proxy *dbus.Proxy) error // dbusProxyClose provides the Close method of [dbus.Proxy]. @@ -85,7 +86,7 @@ func (k direct) dbusAddress() (session, system string) { return dbus.Address() } -func (k direct) dbusFinalise(sessionBus, systemBus dbus.ProxyPair, session, system *dbus.Config) (final *dbus.Final, err error) { +func (k direct) dbusFinalise(sessionBus, systemBus dbus.ProxyPair, session, system *hst.BusConfig) (final *dbus.Final, err error) { return dbus.Finalise(sessionBus, systemBus, session, system) } |
