diff options
author | Bert Münnich <ber.t@posteo.de> | 2015-01-04 15:38:49 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2015-01-04 21:24:43 +0100 |
commit | 9b9294bae67da4e0388e7c31d0063f4e114aa1f8 (patch) | |
tree | 8a9a6ece7fb48b548a75cae28dfe4b4acb99d3c3 /types.h | |
parent | 0cb1d1130568d61c06a2cdd22ab050973e302fc8 (diff) |
Use bit-field for boolean flags in fileinfo struct
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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: */ |