This commit is contained in:
brent s. 2021-12-13 05:50:05 -05:00
parent 0767e9c0c1
commit 16e972c148
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -118,7 +118,7 @@ func pathsFromPath(bus dbus.BusObject, path string) (paths []dbus.ObjectPath, er


/* /*
NameFromPath returns an actual name (as it appears in Dbus) from a dbus.ObjectPath. NameFromPath returns an actual name (as it appears in Dbus) from a dbus.ObjectPath.
Note that you can get any object's dbus.ObjectPath via <object.Dbus.Path(). Note that you can get any object's dbus.ObjectPath via <object>.Dbus.Path().
path is validated to ensure it is not an empty string. path is validated to ensure it is not an empty string.
*/ */
func NameFromPath(path dbus.ObjectPath) (name string, err error) { func NameFromPath(path dbus.ObjectPath) (name string, err error) {