NeoMutt  2019-12-07
Teaching an old dog new tricks
DOXYGEN
types.h File Reference

Constants for all the config types. More...

#include <stdint.h>
+ Include dependency graph for types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DT_ADDRESS   1
 e-mail address More...
 
#define DT_BOOL   2
 boolean option More...
 
#define DT_ENUM   4
 an enumeration More...
 
#define DT_HCACHE   5
 header cache backend More...
 
#define DT_LONG   6
 a number (long) More...
 
#define DT_MBTABLE   8
 multibyte char table More...
 
#define DT_NUMBER   9
 a number More...
 
#define DT_QUAD   11
 quad-option (no/yes/ask-no/ask-yes) More...
 
#define DT_REGEX   12
 regular expressions More...
 
#define DT_SLIST   13
 a list of strings More...
 
#define DT_SORT   14
 sorting methods More...
 
#define DT_STRING   15
 a string More...
 
#define DT_SYNONYM   16
 synonym for another variable More...
 
#define DTYPE(x)   ((x) & 0x1F)
 Mask for the Data Type. More...
 
#define DT_NOT_EMPTY   (1 << 6)
 Empty strings are not allowed. More...
 
#define DT_NOT_NEGATIVE   (1 << 7)
 Negative numbers are not allowed. More...
 
#define DT_MAILBOX   (1 << 8)
 Don't perform path expansions. More...
 
#define DT_SENSITIVE   (1 << 9)
 Contains sensitive value, e.g. password. More...
 
#define DT_PATH   (1 << 10)
 A pathname. More...
 
#define DT_COMMAND   (1 << 11)
 A command. More...
 
#define DT_INHERIT_ACC   (1 << 12)
 Config item can be Account-specific. More...
 
#define DT_INHERIT_MBOX   (1 << 13)
 Config item can be Mailbox-specific. More...
 
#define IS_SENSITIVE(x)   (((x).type & DT_SENSITIVE) == DT_SENSITIVE)
 
#define IS_PATH(x)   (((x)->type & (DT_STRING | DT_PATH)) == (DT_STRING | DT_PATH))
 
#define IS_COMMAND(x)   (((x)->type & (DT_STRING | DT_COMMAND)) == (DT_STRING | DT_COMMAND))
 
#define DT_SUBTYPE_MASK   0x0FE0
 Mask for the Data Subtype. More...
 
#define R_REDRAW_NO_FLAGS   0
 No refresh/resort flags. More...
 
#define R_INDEX   (1 << 17)
 Redraw the index menu (MENU_MAIN) More...
 
#define R_PAGER   (1 << 18)
 Redraw the pager menu. More...
 
#define R_PAGER_FLOW   (1 << 19)
 Reflow line_info and redraw the pager menu. More...
 
#define R_RESORT   (1 << 20)
 Resort the mailbox. More...
 
#define R_RESORT_SUB   (1 << 21)
 Resort subthreads. More...
 
#define R_RESORT_INIT   (1 << 22)
 Resort from scratch. More...
 
#define R_TREE   (1 << 23)
 Redraw the thread tree. More...
 
#define R_REFLOW   (1 << 24)
 Reflow window layout and full redraw. More...
 
#define R_SIDEBAR   (1 << 25)
 Redraw the sidebar. More...
 
#define R_MENU   (1 << 26)
 Redraw all menus. More...
 
#define R_REDRAW_MASK   0x07FE0000
 Mask for the Redraw Flags. More...
 
#define DT_DEPRECATED   (1 << 27)
 Config item shouldn't be used any more. More...
 
#define DT_INHERITED   (1 << 28)
 Config item is inherited. More...
 
#define DT_INITIAL_SET   (1 << 29)
 Config item must have its initial value freed. More...
 
#define DT_DISABLED   (1 << 30)
 Config item is disabled. More...
 
#define DT_MY_CONFIG   (1 << 31)
 Config item is a "my_" variable. More...
 

Typedefs

typedef uint32_t ConfigRedrawFlags
 Flags for redraw/resort, e.g. R_INDEX. More...
 

Detailed Description

Constants for all the config types.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file types.h.

Macro Definition Documentation

◆ DT_ADDRESS

#define DT_ADDRESS   1

e-mail address

Definition at line 29 of file types.h.

◆ DT_BOOL

#define DT_BOOL   2

boolean option

Definition at line 30 of file types.h.

◆ DT_ENUM

#define DT_ENUM   4

an enumeration

Definition at line 31 of file types.h.

◆ DT_HCACHE

#define DT_HCACHE   5

header cache backend

Definition at line 32 of file types.h.

◆ DT_LONG

#define DT_LONG   6

a number (long)

Definition at line 33 of file types.h.

◆ DT_MBTABLE

#define DT_MBTABLE   8

multibyte char table

Definition at line 34 of file types.h.

◆ DT_NUMBER

#define DT_NUMBER   9

a number

Definition at line 35 of file types.h.

◆ DT_QUAD

#define DT_QUAD   11

quad-option (no/yes/ask-no/ask-yes)

Definition at line 36 of file types.h.

◆ DT_REGEX

#define DT_REGEX   12

regular expressions

Definition at line 37 of file types.h.

◆ DT_SLIST

#define DT_SLIST   13

a list of strings

Definition at line 38 of file types.h.

◆ DT_SORT

#define DT_SORT   14

sorting methods

Definition at line 39 of file types.h.

◆ DT_STRING

#define DT_STRING   15

a string

Definition at line 40 of file types.h.

◆ DT_SYNONYM

#define DT_SYNONYM   16

synonym for another variable

Definition at line 41 of file types.h.

◆ DTYPE

#define DTYPE (   x)    ((x) & 0x1F)

Mask for the Data Type.

Definition at line 43 of file types.h.

◆ DT_NOT_EMPTY

#define DT_NOT_EMPTY   (1 << 6)

Empty strings are not allowed.

Definition at line 45 of file types.h.

◆ DT_NOT_NEGATIVE

#define DT_NOT_NEGATIVE   (1 << 7)

Negative numbers are not allowed.

Definition at line 46 of file types.h.

◆ DT_MAILBOX

#define DT_MAILBOX   (1 << 8)

Don't perform path expansions.

Definition at line 47 of file types.h.

◆ DT_SENSITIVE

#define DT_SENSITIVE   (1 << 9)

Contains sensitive value, e.g. password.

Definition at line 48 of file types.h.

◆ DT_PATH

#define DT_PATH   (1 << 10)

A pathname.

Definition at line 49 of file types.h.

◆ DT_COMMAND

#define DT_COMMAND   (1 << 11)

A command.

Definition at line 50 of file types.h.

◆ DT_INHERIT_ACC

#define DT_INHERIT_ACC   (1 << 12)

Config item can be Account-specific.

Definition at line 51 of file types.h.

◆ DT_INHERIT_MBOX

#define DT_INHERIT_MBOX   (1 << 13)

Config item can be Mailbox-specific.

Definition at line 52 of file types.h.

◆ IS_SENSITIVE

#define IS_SENSITIVE (   x)    (((x).type & DT_SENSITIVE) == DT_SENSITIVE)

Definition at line 54 of file types.h.

◆ IS_PATH

#define IS_PATH (   x)    (((x)->type & (DT_STRING | DT_PATH)) == (DT_STRING | DT_PATH))

Definition at line 55 of file types.h.

◆ IS_COMMAND

#define IS_COMMAND (   x)    (((x)->type & (DT_STRING | DT_COMMAND)) == (DT_STRING | DT_COMMAND))

Definition at line 56 of file types.h.

◆ DT_SUBTYPE_MASK

#define DT_SUBTYPE_MASK   0x0FE0

Mask for the Data Subtype.

Definition at line 59 of file types.h.

◆ R_REDRAW_NO_FLAGS

#define R_REDRAW_NO_FLAGS   0

No refresh/resort flags.

Definition at line 62 of file types.h.

◆ R_INDEX

#define R_INDEX   (1 << 17)

Redraw the index menu (MENU_MAIN)

Definition at line 63 of file types.h.

◆ R_PAGER

#define R_PAGER   (1 << 18)

Redraw the pager menu.

Definition at line 64 of file types.h.

◆ R_PAGER_FLOW

#define R_PAGER_FLOW   (1 << 19)

Reflow line_info and redraw the pager menu.

Definition at line 65 of file types.h.

◆ R_RESORT

#define R_RESORT   (1 << 20)

Resort the mailbox.

Definition at line 66 of file types.h.

◆ R_RESORT_SUB

#define R_RESORT_SUB   (1 << 21)

Resort subthreads.

Definition at line 67 of file types.h.

◆ R_RESORT_INIT

#define R_RESORT_INIT   (1 << 22)

Resort from scratch.

Definition at line 68 of file types.h.

◆ R_TREE

#define R_TREE   (1 << 23)

Redraw the thread tree.

Definition at line 69 of file types.h.

◆ R_REFLOW

#define R_REFLOW   (1 << 24)

Reflow window layout and full redraw.

Definition at line 70 of file types.h.

◆ R_SIDEBAR

#define R_SIDEBAR   (1 << 25)

Redraw the sidebar.

Definition at line 71 of file types.h.

◆ R_MENU

#define R_MENU   (1 << 26)

Redraw all menus.

Definition at line 72 of file types.h.

◆ R_REDRAW_MASK

#define R_REDRAW_MASK   0x07FE0000

Mask for the Redraw Flags.

Definition at line 74 of file types.h.

◆ DT_DEPRECATED

#define DT_DEPRECATED   (1 << 27)

Config item shouldn't be used any more.

Definition at line 77 of file types.h.

◆ DT_INHERITED

#define DT_INHERITED   (1 << 28)

Config item is inherited.

Definition at line 78 of file types.h.

◆ DT_INITIAL_SET

#define DT_INITIAL_SET   (1 << 29)

Config item must have its initial value freed.

Definition at line 79 of file types.h.

◆ DT_DISABLED

#define DT_DISABLED   (1 << 30)

Config item is disabled.

Definition at line 80 of file types.h.

◆ DT_MY_CONFIG

#define DT_MY_CONFIG   (1 << 31)

Config item is a "my_" variable.

Definition at line 81 of file types.h.

Typedef Documentation

◆ ConfigRedrawFlags

typedef uint32_t ConfigRedrawFlags

Flags for redraw/resort, e.g. R_INDEX.

Definition at line 61 of file types.h.