2016-10-01 04:13:38 -04:00
|
|
|
package libsecret
|
|
|
|
|
|
|
|
import "github.com/godbus/dbus"
|
|
|
|
|
|
|
|
|
|
|
|
type Session struct {
|
|
|
|
conn *dbus.Conn
|
|
|
|
dbus dbus.BusObject
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func NewSession(conn *dbus.Conn, path dbus.ObjectPath) *Session {
|
|
|
|
return &Session{
|
|
|
|
conn: conn,
|
2016-10-01 05:47:33 -04:00
|
|
|
dbus: conn.Object(DBusServiceName, path),
|
2016-10-01 04:13:38 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (session Session) Path() dbus.ObjectPath {
|
|
|
|
return session.dbus.Path()
|
|
|
|
}
|