diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-07 16:31:46 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-07 16:37:44 +0900 |
| commit | c61cdc505f05decd940cb2d861241039a49251e3 (patch) | |
| tree | e6f34ad86c7a4d0e98b896cd37d4f77cbcb9ea66 /internal/outcome/dispatcher.go | |
| parent | 062edb3487c1cc116cae78bf77420b65c43517d1 (diff) | |
internal/params: relocate from package container
This does not make sense as part of the public API, so make it internal.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/dispatcher.go')
| -rw-r--r-- | internal/outcome/dispatcher.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/outcome/dispatcher.go b/internal/outcome/dispatcher.go index a3d3dbbc..892e6baf 100644 --- a/internal/outcome/dispatcher.go +++ b/internal/outcome/dispatcher.go @@ -17,6 +17,7 @@ import ( "hakurei.app/ext" "hakurei.app/internal/dbus" "hakurei.app/internal/info" + "hakurei.app/internal/params" "hakurei.app/message" ) @@ -84,7 +85,7 @@ type syscallDispatcher interface { // setDumpable provides [container.SetDumpable]. setDumpable(dumpable uintptr) error // receive provides [container.Receive]. - receive(key string, e any, fdp *uintptr) (closeFunc func() error, err error) + receive(key string, e any, fdp *int) (closeFunc func() error, err error) // containerStart provides the Start method of [container.Container]. containerStart(z *container.Container) error @@ -154,8 +155,8 @@ func (direct) prctl(op, arg2, arg3 uintptr) error { return ext.Prctl(op, arg2, a func (direct) overflowUid(msg message.Msg) int { return container.OverflowUid(msg) } func (direct) overflowGid(msg message.Msg) int { return container.OverflowGid(msg) } func (direct) setDumpable(dumpable uintptr) error { return ext.SetDumpable(dumpable) } -func (direct) receive(key string, e any, fdp *uintptr) (func() error, error) { - return container.Receive(key, e, fdp) +func (direct) receive(key string, e any, fdp *int) (func() error, error) { + return params.Receive(key, e, fdp) } func (direct) containerStart(z *container.Container) error { return z.Start() } |
