recursion flags set up

This commit is contained in:
2021-12-15 04:16:06 -05:00
parent ebe91c867c
commit 8d81c5f0cc
4 changed files with 106 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package gokwallet
import (
"github.com/godbus/dbus/v5"
"r00t2.io/goutils/types"
)
/*
@@ -131,3 +132,10 @@ type UnknownItem struct {
type WalletItem interface {
isWalletItem() (isWalletItem bool)
}
/*
RecurseOptsFlag is used to determine whether or not to recurse into items and fully populate them.
One would use a types.BitMask as a parameter type and do <BitMask>.HasFlag(<RecurseOptsFlag>).
See consts.go for the actual flags.
*/
type RecurseOptsFlag types.MaskBit