commit 1e80d37b73235240e66f6b4ae3d88b5b52a815b3
parent 2aa5214b2b7a02c855e43bafa03b079fed461432
Author: lash <dev@holbrook.no>
Date: Sun, 16 Apr 2023 13:34:20 +0100
Implement user flag offset
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/examples/profile/main.go b/examples/profile/main.go
@@ -18,7 +18,7 @@ import (
)
const (
- USERFLAG_IDENTIFIED = iota + 8
+ USERFLAG_IDENTIFIED = iota + state.FLAG_USERSTART
USERFLAG_HAVENAME
USERFLAG_HAVEEMAIL
)
@@ -44,6 +44,7 @@ func newProfileResource(st *state.State, rs *resource.FsResource) *profileResour
}
func(pr *profileResource) checkEntry() error {
+ log.Printf("%v %v", USERFLAG_IDENTIFIED, USERFLAG_HAVENAME)
if pr.haveEntered {
return nil
}
diff --git a/state/flag.go b/state/flag.go
@@ -7,6 +7,7 @@ const (
FLAG_DIRTY
FLAG_WAIT
FLAG_LOADFAIL
+ FLAG_USERSTART = 8
)
func IsWriteableFlag(flag uint32) bool {