adding some funcs for Service. still need two or three more, then Service is done (but untested).

This commit is contained in:
2021-11-30 02:33:07 -05:00
parent 3cab98e584
commit 1d9145bcf2
5 changed files with 186 additions and 98 deletions

View File

@@ -1,15 +1,17 @@
package gosecret
import (
`github.com/godbus/dbus`
"github.com/godbus/dbus"
)
// NewSession returns a pointer to a new Session based on a Dbus connection and a Dbus path.
func NewSession(conn *dbus.Conn, path dbus.ObjectPath) (session *Session) {
session = &Session{
Conn: conn,
Dbus: conn.Object(DbusService, path),
&DbusObject{
Conn: conn,
Dbus: conn.Object(DbusService, path),
},
}
return