Add getUint64Property
This commit is contained in:
parent
4b4b6d712a
commit
edc408ad29
1 changed files with 8 additions and 0 deletions
8
utils.go
8
utils.go
|
@ -148,6 +148,14 @@ func (d *dbusBase) getInt64Property(iface string) int64 {
|
|||
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 {
|
||||
value, ok := d.getProperty(iface).([]uint32)
|
||||
if !ok {
|
||||
|
|
Reference in a new issue