aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/dbus
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-15 13:47:09 +0900
committerOphestra <cat@gensokyo.uk>2025-11-15 13:58:34 +0900
commita91920310d20e1fc472dea044fce8fd9438835df (patch)
tree378cba47d8586e798130a2855f91a685e05244a3 /system/dbus
parent16e674782abbda8c85eac2e7d0c5c22e8cfbf5de (diff)
internal: relocate packages
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/dbus')
-rw-r--r--system/dbus/deprecated.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/system/dbus/deprecated.go b/system/dbus/deprecated.go
index 67a309c2..8f8a6695 100644
--- a/system/dbus/deprecated.go
+++ b/system/dbus/deprecated.go
@@ -1,4 +1,4 @@
-// Package dbus exposes the internal/system/dbus package.
+// Package dbus exposes the internal/dbus package.
//
// Deprecated: This package will be removed in 0.4.
package dbus
@@ -9,7 +9,7 @@ import (
_ "unsafe" // for go:linkname
"hakurei.app/hst"
- "hakurei.app/internal/system/dbus"
+ "hakurei.app/internal/dbus"
"hakurei.app/message"
)
@@ -17,13 +17,13 @@ type AddrEntry = dbus.AddrEntry
// EqualAddrEntries returns whether two slices of [AddrEntry] are equal.
//
-//go:linkname EqualAddrEntries hakurei.app/internal/system/dbus.EqualAddrEntries
+//go:linkname EqualAddrEntries hakurei.app/internal/dbus.EqualAddrEntries
func EqualAddrEntries(entries, target []AddrEntry) bool
// Parse parses D-Bus address according to
// https://dbus.freedesktop.org/doc/dbus-specification.html#addresses
//
-//go:linkname Parse hakurei.app/internal/system/dbus.Parse
+//go:linkname Parse hakurei.app/internal/dbus.Parse
func Parse(addr []byte) ([]AddrEntry, error)
type ParseError = dbus.ParseError
@@ -46,12 +46,12 @@ type ProxyPair = dbus.ProxyPair
// Args returns the xdg-dbus-proxy arguments equivalent of [hst.BusConfig].
//
-//go:linkname Args hakurei.app/internal/system/dbus.Args
+//go:linkname Args hakurei.app/internal/dbus.Args
func Args(c *hst.BusConfig, bus ProxyPair) (args []string)
// NewConfig returns the address of a new [hst.BusConfig] with optional defaults.
//
-//go:linkname NewConfig hakurei.app/internal/system/dbus.NewConfig
+//go:linkname NewConfig hakurei.app/internal/dbus.NewConfig
func NewConfig(id string, defaults, mpris bool) *hst.BusConfig
const (
@@ -89,13 +89,13 @@ const (
// Address returns the session and system bus addresses copied from environment,
// or appropriate fallback values if they are not set.
//
-//go:linkname Address hakurei.app/internal/system/dbus.Address
+//go:linkname Address hakurei.app/internal/dbus.Address
func Address() (session, system string)
// ProxyName is the file name or path to the proxy program.
// Overriding ProxyName will only affect Proxy instance created after the change.
//
-//go:linkname ProxyName hakurei.app/internal/system/dbus.ProxyName
+//go:linkname ProxyName hakurei.app/internal/dbus.ProxyName
var ProxyName string
// Proxy holds the state of a xdg-dbus-proxy process, and should never be copied.
@@ -106,10 +106,10 @@ type Final = dbus.Final
// Finalise creates a checked argument writer for [Proxy].
//
-//go:linkname Finalise hakurei.app/internal/system/dbus.Finalise
+//go:linkname Finalise hakurei.app/internal/dbus.Finalise
func Finalise(sessionBus, systemBus ProxyPair, session, system *hst.BusConfig) (final *Final, err error)
// New returns a new instance of [Proxy].
//
-//go:linkname New hakurei.app/internal/system/dbus.New
+//go:linkname New hakurei.app/internal/dbus.New
func New(ctx context.Context, msg message.Msg, final *Final, output io.Writer) *Proxy