NeoMutt  2019-12-07
Teaching an old dog new tricks
DOXYGEN
types.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_CONFIG_TYPES_H
24 #define MUTT_CONFIG_TYPES_H
25 
26 #include <stdint.h>
27 
28 /* Data Types */
29 #define DT_ADDRESS 1
30 #define DT_BOOL 2
31 #define DT_ENUM 4
32 #define DT_HCACHE 5
33 #define DT_LONG 6
34 #define DT_MBTABLE 8
35 #define DT_NUMBER 9
36 #define DT_QUAD 11
37 #define DT_REGEX 12
38 #define DT_SLIST 13
39 #define DT_SORT 14
40 #define DT_STRING 15
41 #define DT_SYNONYM 16
42 
43 #define DTYPE(x) ((x) & 0x1F)
44 
45 #define DT_NOT_EMPTY (1 << 6)
46 #define DT_NOT_NEGATIVE (1 << 7)
47 #define DT_MAILBOX (1 << 8)
48 #define DT_SENSITIVE (1 << 9)
49 #define DT_PATH (1 << 10)
50 #define DT_COMMAND (1 << 11)
51 #define DT_INHERIT_ACC (1 << 12)
52 #define DT_INHERIT_MBOX (1 << 13)
53 
54 #define IS_SENSITIVE(x) (((x).type & DT_SENSITIVE) == DT_SENSITIVE)
55 #define IS_PATH(x) (((x)->type & (DT_STRING | DT_PATH)) == (DT_STRING | DT_PATH))
56 #define IS_COMMAND(x) (((x)->type & (DT_STRING | DT_COMMAND)) == (DT_STRING | DT_COMMAND))
57 
58 /* subtypes for... */
59 #define DT_SUBTYPE_MASK 0x0FE0
60 
61 typedef uint32_t ConfigRedrawFlags;
62 #define R_REDRAW_NO_FLAGS 0
63 #define R_INDEX (1 << 17)
64 #define R_PAGER (1 << 18)
65 #define R_PAGER_FLOW (1 << 19)
66 #define R_RESORT (1 << 20)
67 #define R_RESORT_SUB (1 << 21)
68 #define R_RESORT_INIT (1 << 22)
69 #define R_TREE (1 << 23)
70 #define R_REFLOW (1 << 24)
71 #define R_SIDEBAR (1 << 25)
72 #define R_MENU (1 << 26)
73 
74 #define R_REDRAW_MASK 0x07FE0000
75 
76 /* Private config item flags */
77 #define DT_DEPRECATED (1 << 27)
78 #define DT_INHERITED (1 << 28)
79 #define DT_INITIAL_SET (1 << 29)
80 #define DT_DISABLED (1 << 30)
81 #define DT_MY_CONFIG (1 << 31)
82 
83 #endif /* MUTT_CONFIG_TYPES_H */
uint32_t ConfigRedrawFlags
Flags for redraw/resort, e.g. R_INDEX.
Definition: types.h:61