aboutsummaryrefslogtreecommitdiffhomepage
path: root/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'dbus')
-rw-r--r--dbus/proxy.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/dbus/proxy.go b/dbus/proxy.go
index 7e7d9a65..f3474a8e 100644
--- a/dbus/proxy.go
+++ b/dbus/proxy.go
@@ -28,6 +28,21 @@ type Proxy struct {
lock sync.RWMutex
}
+func (p *Proxy) Session() [2]string {
+ return p.session
+}
+
+func (p *Proxy) System() [2]string {
+ return p.system
+}
+
+func (p *Proxy) Sealed() bool {
+ p.lock.RLock()
+ defer p.lock.RUnlock()
+
+ return p.seal != nil
+}
+
var (
ErrConfig = errors.New("no configuration to seal")
)