NeoMutt
2023-11-03-107-g582dc1
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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_ON_STARTUP (1 << 6)
50
#define DT_NOT_EMPTY (1 << 7)
51
#define DT_NOT_NEGATIVE (1 << 8)
52
#define DT_MAILBOX (1 << 9)
53
#define DT_SENSITIVE (1 << 10)
54
#define DT_COMMAND (1 << 11)
55
#define DT_INHERIT_ACC (1 << 12)
56
#define DT_INHERIT_MBOX (1 << 13)
57
#define DT_PATH_DIR (1 << 14)
58
#define DT_PATH_FILE (1 << 15)
59
60
#define IS_SENSITIVE(type) (((type) & DT_SENSITIVE) == DT_SENSITIVE)
61
#define IS_MAILBOX(type) (((type) & (DT_STRING | DT_MAILBOX)) == (DT_STRING | DT_MAILBOX))
62
#define IS_COMMAND(type) (((type) & (DT_STRING | DT_COMMAND)) == (DT_STRING | DT_COMMAND))
63
64
/* subtypes for... */
65
#define DT_SUBTYPE_MASK 0xFFC0
66
67
typedef
uint32_t
ConfigRedrawFlags
;
68
#define R_REDRAW_NO_FLAGS 0
69
#define R_INDEX (1 << 17)
70
#define R_RESORT (1 << 18)
71
#define R_RESORT_SUB (1 << 19)
72
#define R_RESORT_INIT (1 << 20)
73
74
#define R_REDRAW_MASK 0x01E0000
75
76
/* Private config item flags */
77
#define DT_FREE_CONFIGDEF (1 << 26)
78
#define DT_DEPRECATED (1 << 27)
79
#define DT_INHERITED (1 << 28)
80
#define DT_INITIAL_SET (1 << 29)
81
#define DT_DISABLED (1 << 30)
82
83
#endif
/* MUTT_CONFIG_TYPES_H */
ConfigRedrawFlags
uint32_t ConfigRedrawFlags
Flags for redraw/resort, e.g. R_INDEX.
Definition:
types.h:67