diff --git a/ActiveConnection.go b/ActiveConnection.go index c24bb31..50054c8 100644 --- a/ActiveConnection.go +++ b/ActiveConnection.go @@ -27,7 +27,9 @@ const ( ) type ActiveConnection interface { - // GetConnection gets connection object of the connection. + GetPath() dbus.ObjectPath + + // GetConnectionSettings gets connection object of the connection. GetConnection() Connection // GetSpecificObject gets a specific object associated with the active connection. @@ -85,6 +87,10 @@ type activeConnection struct { dbusBase } +func (a *activeConnection) GetPath() dbus.ObjectPath { + return a.obj.Path() +} + func (a *activeConnection) GetConnection() Connection { path := a.getObjectProperty(ActiveConnectionPropertyConnection) con, err := NewConnection(path)