NeoMutt
2023-05-17-56-ga67199
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 3
32
#define DT_HCACHE 4
33
#define DT_LONG 5
34
#define DT_MBTABLE 6
35
#define DT_NUMBER 7
36
#define DT_PATH 8
37
#define DT_QUAD 9
38
#define DT_REGEX 10
39
#define DT_SLIST 11
40
#define DT_SORT 12
41
#define DT_STRING 13
42
#define DT_SYNONYM 14
43
#define DT_MYVAR 15
44
45
#define DTYPE(x) ((x) & 0x1F)
46
47
#define DT_NO_FLAGS 0
48
49
#define DT_NOT_EMPTY (1 << 6)
50
#define DT_NOT_NEGATIVE (1 << 7)
51
#define DT_MAILBOX (1 << 8)
52
#define DT_SENSITIVE (1 << 9)
53
#define DT_COMMAND (1 << 10)
54
#define DT_INHERIT_ACC (1 << 11)
55
#define DT_INHERIT_MBOX (1 << 12)
56
#define DT_PATH_DIR (1 << 13)
57
#define DT_PATH_FILE (1 << 14)
58
59
#define IS_SENSITIVE(type) (((type) & DT_SENSITIVE) == DT_SENSITIVE)
60
#define IS_MAILBOX(type) (((type) & (DT_STRING | DT_MAILBOX)) == (DT_STRING | DT_MAILBOX))
61
#define IS_COMMAND(type) (((type) & (DT_STRING | DT_COMMAND)) == (DT_STRING | DT_COMMAND))
62
63
/* subtypes for... */
64
#define DT_SUBTYPE_MASK 0x7FC0
65
66
typedef
uint32_t
ConfigRedrawFlags
;
67
#define R_REDRAW_NO_FLAGS 0
68
#define R_INDEX (1 << 17)
69
#define R_RESORT (1 << 18)
70
#define R_RESORT_SUB (1 << 19)
71
#define R_RESORT_INIT (1 << 20)
72
73
#define R_REDRAW_MASK 0x01E0000
74
75
/* Private config item flags */
76
#define DT_FREE_CONFIGDEF (1 << 26)
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
82
#endif
/* MUTT_CONFIG_TYPES_H */
ConfigRedrawFlags
uint32_t ConfigRedrawFlags
Flags for redraw/resort, e.g. R_INDEX.
Definition:
types.h:66