Added utils method for dbus calls with two return values
This commit is contained in:
parent
5852676635
commit
1a95214556
1 changed files with 4 additions and 0 deletions
4
utils.go
4
utils.go
|
@ -41,6 +41,10 @@ func (d *dbusBase) callError(value interface{}, method string, args ...interface
|
|||
return d.obj.Call(method, 0, args...).Store(value)
|
||||
}
|
||||
|
||||
func (d *dbusBase) callError2(value1 interface{}, value2 interface{}, method string, args ...interface{}) error {
|
||||
return d.obj.Call(method, 0, args...).Store(value1, value2)
|
||||
}
|
||||
|
||||
func (d *dbusBase) subscribe(iface, member string) {
|
||||
rule := fmt.Sprintf("type='signal',interface='%s',path='%s',member='%s'",
|
||||
iface, d.obj.Path(), NetworkManagerInterface)
|
||||
|
|
Reference in a new issue