This commit is contained in:
cuu
2018-11-25 23:40:42 +08:00
parent 48d6a7c894
commit d301141c16
2 changed files with 177 additions and 3 deletions

View File

@@ -42,14 +42,18 @@ func (self *DbusInterface) Method(name string, args...interface{} ) *dbus.Call {
}
}
func (self *DbusInterface) Get( thecall *dbus.Call, retvalues ...interface{}) {
func (self *DbusInterface) Get( thecall *dbus.Call, retvalues ...interface{}) error {
if len(thecall.Body) == 0 {
return
return nil
}
err:= thecall.Store(retvalues...)
return err
/*
if err != nil {
panic(fmt.Sprintf("Failed: %s",err))
}
*/
}
type DBusInterface interface {