func (cda *CdDbus) dbusGet(iface *dbus.Interface, action string, args ...interface{}) ([]interface{}, error) { if iface == nil { return nil, errors.New("no subicon interface") } method, e := iface.Method(action) if e != nil { return nil, e } return cda.dbus.Call(method, args...) }
func (cda *CdDbus) dbusAction(iface *dbus.Interface, action string, args ...interface{}) error { if iface == nil { return errors.New("no subicon interface") } method, e := iface.Method(action) if e != nil { return e } _, err := cda.dbus.Call(method, args...) //~ fmt.Println("ret", ret) return err }