From 06880b41634ba1ab4d28814a53530f3271385e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCller?= Date: Wed, 12 Jun 2019 11:10:06 +0200 Subject: [PATCH] Add ActiveConnection.GetPath --- ActiveConnection.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)