summaryrefslogtreecommitdiffstats
path: root/types.h
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2015-01-04 15:38:49 +0100
committerBert Münnich <ber.t@posteo.de>2015-01-04 21:24:43 +0100
commit9b9294bae67da4e0388e7c31d0063f4e114aa1f8 (patch)
tree8a9a6ece7fb48b548a75cae28dfe4b4acb99d3c3 /types.h
parent0cb1d1130568d61c06a2cdd22ab050973e302fc8 (diff)
downloadnsxiv-9b9294bae67da4e0388e7c31d0063f4e114aa1f8.tar.zst
Use bit-field for boolean flags in fileinfo struct
Diffstat (limited to 'types.h')
-rw-r--r--types.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/types.h b/types.h
index 78022bd..c573d13 100644
--- a/types.h
+++ b/types.h
@@ -64,12 +64,16 @@ typedef enum {
CURSOR_WATCH
} cursor_t;
+typedef enum {
+ FF_WARN = 1,
+ FF_MARK = 2
+} fileflags_t;
+
typedef struct {
const char *name; /* as given by user */
const char *path; /* always absolute */
const char *base;
- bool warn;
- bool marked;
+ fileflags_t flags;
} fileinfo_t;
/* timeouts in milliseconds: */