Add getUint64Property

This commit is contained in:
Christian Müller 2019-06-19 10:36:04 +02:00
parent 4b4b6d712a
commit edc408ad29

View file

@ -148,6 +148,14 @@ func (d *dbusBase) getInt64Property(iface string) int64 {
return value return value
} }
func (d *dbusBase) getUint64Property(iface string) uint64 {
value, ok := d.getProperty(iface).(uint64)
if !ok {
panic(makeErrVariantType(iface))
}
return value
}
func (d *dbusBase) getSliceUint32Property(iface string) []uint32 { func (d *dbusBase) getSliceUint32Property(iface string) []uint32 {
value, ok := d.getProperty(iface).([]uint32) value, ok := d.getProperty(iface).([]uint32)
if !ok { if !ok {