checking in more tests for Service.

This commit is contained in:
2021-12-08 02:34:27 -05:00
parent b6ba0f9736
commit eda1777431
5 changed files with 194 additions and 10 deletions

View File

@@ -10,7 +10,11 @@ import (
NewSession returns a pointer to a new Session based on a Service and a dbus.ObjectPath.
You will almost always want to use Service.GetSession or Service.OpenSession instead.
*/
func NewSession(service *Service, path dbus.ObjectPath) (session *Session) {
func NewSession(service *Service, path dbus.ObjectPath) (session *Session, err error) {
if _, err = validConnPath(service.Conn, path); err != nil {
return
}
var ssn Session = Session{
DbusObject: &DbusObject{