internal: relocate packages
All checks were successful
Test / Create distribution (push) Successful in 36s
Test / Sandbox (push) Successful in 2m20s
Test / Hakurei (push) Successful in 3m19s
Test / Hpkg (push) Successful in 4m12s
Test / Sandbox (race detector) (push) Successful in 4m31s
Test / Hakurei (race detector) (push) Successful in 5m12s
Test / Flake checks (push) Successful in 1m32s
All checks were successful
Test / Create distribution (push) Successful in 36s
Test / Sandbox (push) Successful in 2m20s
Test / Hakurei (push) Successful in 3m19s
Test / Hpkg (push) Successful in 4m12s
Test / Sandbox (race detector) (push) Successful in 4m31s
Test / Hakurei (race detector) (push) Successful in 5m12s
Test / Flake checks (push) Successful in 1m32s
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
16e674782a
commit
a91920310d
@ -17,10 +17,10 @@ import (
|
|||||||
"hakurei.app/container/check"
|
"hakurei.app/container/check"
|
||||||
"hakurei.app/container/fhs"
|
"hakurei.app/container/fhs"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/internal/env"
|
"hakurei.app/internal/env"
|
||||||
"hakurei.app/internal/info"
|
"hakurei.app/internal/info"
|
||||||
"hakurei.app/internal/outcome"
|
"hakurei.app/internal/outcome"
|
||||||
"hakurei.app/internal/system/dbus"
|
|
||||||
"hakurei.app/message"
|
"hakurei.app/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
)
|
)
|
||||||
|
|
||||||
const testFileName = "acl.test"
|
const testFileName = "acl.test"
|
||||||
@ -3,7 +3,7 @@ package acl_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPerms(t *testing.T) {
|
func TestPerms(t *testing.T) {
|
||||||
@ -5,7 +5,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hakurei.app/internal/system/dbus"
|
"hakurei.app/internal/dbus"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestParse(t *testing.T) {
|
func TestParse(t *testing.T) {
|
||||||
@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/dbus"
|
"hakurei.app/internal/dbus"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestConfigArgs(t *testing.T) {
|
func TestConfigArgs(t *testing.T) {
|
||||||
@ -11,8 +11,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/internal/helper"
|
"hakurei.app/internal/helper"
|
||||||
"hakurei.app/internal/system/dbus"
|
|
||||||
"hakurei.app/message"
|
"hakurei.app/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -14,8 +14,8 @@ import (
|
|||||||
"hakurei.app/container/check"
|
"hakurei.app/container/check"
|
||||||
"hakurei.app/container/seccomp"
|
"hakurei.app/container/seccomp"
|
||||||
"hakurei.app/container/std"
|
"hakurei.app/container/std"
|
||||||
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/internal/info"
|
"hakurei.app/internal/info"
|
||||||
"hakurei.app/internal/system/dbus"
|
|
||||||
"hakurei.app/message"
|
"hakurei.app/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -9,9 +9,9 @@ import (
|
|||||||
"hakurei.app/container"
|
"hakurei.app/container"
|
||||||
"hakurei.app/container/check"
|
"hakurei.app/container/check"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/env"
|
"hakurei.app/internal/env"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
|
||||||
"hakurei.app/message"
|
"hakurei.app/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -21,9 +21,9 @@ import (
|
|||||||
"hakurei.app/container/seccomp"
|
"hakurei.app/container/seccomp"
|
||||||
"hakurei.app/container/std"
|
"hakurei.app/container/std"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
|
||||||
"hakurei.app/internal/system/dbus"
|
|
||||||
"hakurei.app/message"
|
"hakurei.app/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -16,9 +16,9 @@ import (
|
|||||||
"hakurei.app/container/seccomp"
|
"hakurei.app/container/seccomp"
|
||||||
"hakurei.app/container/std"
|
"hakurei.app/container/std"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
|
||||||
"hakurei.app/internal/system/dbus"
|
|
||||||
"hakurei.app/internal/validate"
|
"hakurei.app/internal/validate"
|
||||||
"hakurei.app/message"
|
"hakurei.app/message"
|
||||||
)
|
)
|
||||||
|
|||||||
@ -14,9 +14,9 @@ import (
|
|||||||
"hakurei.app/container/std"
|
"hakurei.app/container/std"
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
|
||||||
"hakurei.app/internal/system/dbus"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSpParamsOp(t *testing.T) {
|
func TestSpParamsOp(t *testing.T) {
|
||||||
|
|||||||
@ -5,8 +5,8 @@ import (
|
|||||||
|
|
||||||
"hakurei.app/container/fhs"
|
"hakurei.app/container/fhs"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system/dbus"
|
"hakurei.app/internal/dbus"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() { gob.Register(new(spDBusOp)) }
|
func init() { gob.Register(new(spDBusOp)) }
|
||||||
|
|||||||
@ -7,10 +7,10 @@ import (
|
|||||||
"hakurei.app/container"
|
"hakurei.app/container"
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/internal/helper"
|
"hakurei.app/internal/helper"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
|
||||||
"hakurei.app/internal/system/dbus"
|
|
||||||
"hakurei.app/message"
|
"hakurei.app/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -11,8 +11,8 @@ import (
|
|||||||
"hakurei.app/container/check"
|
"hakurei.app/container/check"
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSpPulseOp(t *testing.T) {
|
func TestSpPulseOp(t *testing.T) {
|
||||||
|
|||||||
@ -7,8 +7,8 @@ import (
|
|||||||
"hakurei.app/container/fhs"
|
"hakurei.app/container/fhs"
|
||||||
"hakurei.app/container/std"
|
"hakurei.app/container/std"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@ -8,8 +8,8 @@ import (
|
|||||||
"hakurei.app/container/std"
|
"hakurei.app/container/std"
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSpRuntimeOp(t *testing.T) {
|
func TestSpRuntimeOp(t *testing.T) {
|
||||||
|
|||||||
@ -7,8 +7,8 @@ import (
|
|||||||
"hakurei.app/container/fhs"
|
"hakurei.app/container/fhs"
|
||||||
"hakurei.app/container/std"
|
"hakurei.app/container/std"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() { gob.Register(spTmpdirOp{}) }
|
func init() { gob.Register(spTmpdirOp{}) }
|
||||||
|
|||||||
@ -8,8 +8,8 @@ import (
|
|||||||
"hakurei.app/container/std"
|
"hakurei.app/container/std"
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSpTmpdirOp(t *testing.T) {
|
func TestSpTmpdirOp(t *testing.T) {
|
||||||
|
|||||||
@ -5,8 +5,8 @@ import (
|
|||||||
|
|
||||||
"hakurei.app/container/check"
|
"hakurei.app/container/check"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system/wayland"
|
"hakurei.app/internal/wayland"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() { gob.Register(new(spWaylandOp)) }
|
func init() { gob.Register(new(spWaylandOp)) }
|
||||||
|
|||||||
@ -6,9 +6,9 @@ import (
|
|||||||
"hakurei.app/container"
|
"hakurei.app/container"
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system"
|
"hakurei.app/internal/system"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/wayland"
|
||||||
"hakurei.app/internal/system/wayland"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSpWaylandOp(t *testing.T) {
|
func TestSpWaylandOp(t *testing.T) {
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import (
|
|||||||
"hakurei.app/container/check"
|
"hakurei.app/container/check"
|
||||||
"hakurei.app/container/fhs"
|
"hakurei.app/container/fhs"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
)
|
)
|
||||||
|
|
||||||
var absX11SocketDir = fhs.AbsTmp.Append(".X11-unix")
|
var absX11SocketDir = fhs.AbsTmp.Append(".X11-unix")
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import (
|
|||||||
"hakurei.app/container"
|
"hakurei.app/container"
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSpX11Op(t *testing.T) {
|
func TestSpX11Op(t *testing.T) {
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"hakurei.app/container/check"
|
"hakurei.app/container/check"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UpdatePerm calls UpdatePermType with the [Process] criteria.
|
// UpdatePerm calls UpdatePermType with the [Process] criteria.
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestACLUpdateOp(t *testing.T) {
|
func TestACLUpdateOp(t *testing.T) {
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import (
|
|||||||
|
|
||||||
"hakurei.app/container"
|
"hakurei.app/container"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/dbus"
|
"hakurei.app/internal/dbus"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrDBusConfig is returned when a required [hst.BusConfig] argument is nil.
|
// ErrDBusConfig is returned when a required [hst.BusConfig] argument is nil.
|
||||||
|
|||||||
@ -11,8 +11,8 @@ import (
|
|||||||
|
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/internal/helper"
|
"hakurei.app/internal/helper"
|
||||||
"hakurei.app/internal/system/dbus"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDBusProxyOp(t *testing.T) {
|
func TestDBusProxyOp(t *testing.T) {
|
||||||
|
|||||||
@ -7,9 +7,9 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system/dbus"
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/internal/system/xcb"
|
"hakurei.app/internal/xcb"
|
||||||
)
|
)
|
||||||
|
|
||||||
type osFile interface {
|
type osFile interface {
|
||||||
|
|||||||
@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system/dbus"
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/internal/system/xcb"
|
"hakurei.app/internal/xcb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// call initialises a [stub.Call].
|
// call initialises a [stub.Call].
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import (
|
|||||||
"hakurei.app/container/check"
|
"hakurei.app/container/check"
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/xcb"
|
"hakurei.app/internal/xcb"
|
||||||
"hakurei.app/message"
|
"hakurei.app/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -7,8 +7,8 @@ import (
|
|||||||
|
|
||||||
"hakurei.app/container/check"
|
"hakurei.app/container/check"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system/wayland"
|
"hakurei.app/internal/wayland"
|
||||||
)
|
)
|
||||||
|
|
||||||
type waylandConn interface {
|
type waylandConn interface {
|
||||||
|
|||||||
@ -6,8 +6,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
"hakurei.app/internal/system/wayland"
|
"hakurei.app/internal/wayland"
|
||||||
)
|
)
|
||||||
|
|
||||||
type stubWaylandConn struct {
|
type stubWaylandConn struct {
|
||||||
|
|||||||
@ -2,7 +2,7 @@ package system
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/xcb"
|
"hakurei.app/internal/xcb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ChangeHosts inserts the target user into X11 hosts and deletes it once its [Enablement] is no longer satisfied.
|
// ChangeHosts inserts the target user into X11 hosts and deletes it once its [Enablement] is no longer satisfied.
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"hakurei.app/container/stub"
|
"hakurei.app/container/stub"
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/xcb"
|
"hakurei.app/internal/xcb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestXHostOp(t *testing.T) {
|
func TestXHostOp(t *testing.T) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// Package acl exposes the internal/system/acl package.
|
// Package acl exposes the internal/acl package.
|
||||||
//
|
//
|
||||||
// Deprecated: This package will be removed in 0.4.
|
// Deprecated: This package will be removed in 0.4.
|
||||||
package acl
|
package acl
|
||||||
@ -6,7 +6,7 @@ package acl
|
|||||||
import (
|
import (
|
||||||
_ "unsafe" // for go:linkname
|
_ "unsafe" // for go:linkname
|
||||||
|
|
||||||
"hakurei.app/internal/system/acl"
|
"hakurei.app/internal/acl"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Perm = acl.Perm
|
type Perm = acl.Perm
|
||||||
@ -19,7 +19,7 @@ const (
|
|||||||
|
|
||||||
// Update replaces ACL_USER entry with qualifier uid.
|
// Update replaces ACL_USER entry with qualifier uid.
|
||||||
//
|
//
|
||||||
//go:linkname Update hakurei.app/internal/system/acl.Update
|
//go:linkname Update hakurei.app/internal/acl.Update
|
||||||
func Update(name string, uid int, perms ...Perm) error
|
func Update(name string, uid int, perms ...Perm) error
|
||||||
|
|
||||||
type Perms = acl.Perms
|
type Perms = acl.Perms
|
||||||
|
|||||||
@ -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.
|
// Deprecated: This package will be removed in 0.4.
|
||||||
package dbus
|
package dbus
|
||||||
@ -9,7 +9,7 @@ import (
|
|||||||
_ "unsafe" // for go:linkname
|
_ "unsafe" // for go:linkname
|
||||||
|
|
||||||
"hakurei.app/hst"
|
"hakurei.app/hst"
|
||||||
"hakurei.app/internal/system/dbus"
|
"hakurei.app/internal/dbus"
|
||||||
"hakurei.app/message"
|
"hakurei.app/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -17,13 +17,13 @@ type AddrEntry = dbus.AddrEntry
|
|||||||
|
|
||||||
// EqualAddrEntries returns whether two slices of [AddrEntry] are equal.
|
// 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
|
func EqualAddrEntries(entries, target []AddrEntry) bool
|
||||||
|
|
||||||
// Parse parses D-Bus address according to
|
// Parse parses D-Bus address according to
|
||||||
// https://dbus.freedesktop.org/doc/dbus-specification.html#addresses
|
// 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)
|
func Parse(addr []byte) ([]AddrEntry, error)
|
||||||
|
|
||||||
type ParseError = dbus.ParseError
|
type ParseError = dbus.ParseError
|
||||||
@ -46,12 +46,12 @@ type ProxyPair = dbus.ProxyPair
|
|||||||
|
|
||||||
// Args returns the xdg-dbus-proxy arguments equivalent of [hst.BusConfig].
|
// 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)
|
func Args(c *hst.BusConfig, bus ProxyPair) (args []string)
|
||||||
|
|
||||||
// NewConfig returns the address of a new [hst.BusConfig] with optional defaults.
|
// 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
|
func NewConfig(id string, defaults, mpris bool) *hst.BusConfig
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -89,13 +89,13 @@ const (
|
|||||||
// Address returns the session and system bus addresses copied from environment,
|
// Address returns the session and system bus addresses copied from environment,
|
||||||
// or appropriate fallback values if they are not set.
|
// 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)
|
func Address() (session, system string)
|
||||||
|
|
||||||
// ProxyName is the file name or path to the proxy program.
|
// ProxyName is the file name or path to the proxy program.
|
||||||
// Overriding ProxyName will only affect Proxy instance created after the change.
|
// 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
|
var ProxyName string
|
||||||
|
|
||||||
// Proxy holds the state of a xdg-dbus-proxy process, and should never be copied.
|
// 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].
|
// 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)
|
func Finalise(sessionBus, systemBus ProxyPair, session, system *hst.BusConfig) (final *Final, err error)
|
||||||
|
|
||||||
// New returns a new instance of [Proxy].
|
// 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
|
func New(ctx context.Context, msg message.Msg, final *Final, output io.Writer) *Proxy
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// Package wayland exposes the internal/system/wayland package.
|
// Package wayland exposes the internal/wayland package.
|
||||||
//
|
//
|
||||||
// Deprecated: This package will be removed in 0.4.
|
// Deprecated: This package will be removed in 0.4.
|
||||||
package wayland
|
package wayland
|
||||||
@ -6,7 +6,7 @@ package wayland
|
|||||||
import (
|
import (
|
||||||
_ "unsafe" // for go:linkname
|
_ "unsafe" // for go:linkname
|
||||||
|
|
||||||
"hakurei.app/internal/system/wayland"
|
"hakurei.app/internal/wayland"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Conn represents a connection to the wayland display server.
|
// Conn represents a connection to the wayland display server.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user