dbus: seal as io.WriterTo interface

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
Ophestra Umiker 2024-09-24 18:02:56 +09:00
parent 000607da5f
commit b722adc4dd
Signed by: cat
SSH Key Fingerprint: SHA256:gQ67O0enBZ7UdZypgtspB2FDM1g3GVw8nX0XSdcFw8Q
1 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@ package dbus
import ( import (
"errors" "errors"
"io"
"os" "os"
"os/exec" "os/exec"
"sync" "sync"
@ -25,7 +26,7 @@ type Proxy struct {
read *chan error read *chan error
ready *chan bool ready *chan bool
seal helper.Args seal io.WriterTo
lock sync.RWMutex lock sync.RWMutex
} }
@ -42,7 +43,7 @@ func (p *Proxy) String() string {
} }
if p.seal != nil { if p.seal != nil {
return p.seal.String() return p.seal.(helper.Args).String()
} }
return "(unsealed dbus proxy)" return "(unsealed dbus proxy)"