NeoMutt
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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
 
#define DT_BOOL   2
 boolean option
 
#define DT_ENUM   3
 an enumeration
 
#define DT_HCACHE   4
 header cache backend
 
#define DT_LONG   5
 a number (long)
 
#define DT_MBTABLE   6
 multibyte char table
 
#define DT_NUMBER   7
 a number
 
#define DT_PATH   8
 a path to a file/directory
 
#define DT_QUAD   9
 quad-option (no/yes/ask-no/ask-yes)
 
#define DT_REGEX   10
 regular expressions
 
#define DT_SLIST   11
 a list of strings
 
#define DT_SORT   12
 sorting methods
 
#define DT_STRING   13
 a string
 
#define DT_SYNONYM   14
 synonym for another variable
 
#define DT_MYVAR   15
 a user-defined variable (my_foo)
 
#define DTYPE(x)   ((x) & 0x1F)
 Mask for the Data Type.
 
#define DT_NO_FLAGS   0
 No flags are set.
 
#define DT_NOT_EMPTY   (1 << 6)
 Empty strings are not allowed.
 
#define DT_NOT_NEGATIVE   (1 << 7)
 Negative numbers are not allowed.
 
#define DT_MAILBOX   (1 << 8)
 Don't perform path expansions.
 
#define DT_SENSITIVE   (1 << 9)
 Contains sensitive value, e.g. password.
 
#define DT_COMMAND   (1 << 10)
 A command.
 
#define DT_INHERIT_ACC   (1 << 11)
 Config item can be Account-specific.
 
#define DT_INHERIT_MBOX   (1 << 12)
 Config item can be Mailbox-specific.
 
#define DT_PATH_DIR   (1 << 13)
 Path is a directory.
 
#define DT_PATH_FILE   (1 << 14)
 Path is a file.
 
#define IS_SENSITIVE(type)   (((type) & DT_SENSITIVE) == DT_SENSITIVE)
 
#define IS_MAILBOX(type)   (((type) & (DT_STRING | DT_MAILBOX)) == (DT_STRING | DT_MAILBOX))
 
#define IS_COMMAND(type)   (((type) & (DT_STRING | DT_COMMAND)) == (DT_STRING | DT_COMMAND))
 
#define DT_SUBTYPE_MASK   0x7FC0
 Mask for the Data Subtype.
 
#define R_REDRAW_NO_FLAGS   0
 No refresh/resort flags.
 
#define R_INDEX   (1 << 17)
 Redraw the index menu (MENU_INDEX)
 
#define R_RESORT   (1 << 18)
 Resort the mailbox.
 
#define R_RESORT_SUB   (1 << 19)
 Resort subthreads.
 
#define R_RESORT_INIT   (1 << 20)
 Resort from scratch.
 
#define R_REDRAW_MASK   0x01E0000
 Mask for the Redraw Flags.
 
#define DT_FREE_CONFIGDEF   (1 << 26)
 Config item must have its ConfigDef freed.
 
#define DT_DEPRECATED   (1 << 27)
 Config item shouldn't be used any more.
 
#define DT_INHERITED   (1 << 28)
 Config item is inherited.
 
#define DT_INITIAL_SET   (1 << 29)
 Config item must have its initial value freed.
 
#define DT_DISABLED   (1 << 30)
 Config item is disabled.
 

Typedefs

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

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   3

an enumeration

Definition at line 31 of file types.h.

◆ DT_HCACHE

#define DT_HCACHE   4

header cache backend

Definition at line 32 of file types.h.

◆ DT_LONG

#define DT_LONG   5

a number (long)

Definition at line 33 of file types.h.

◆ DT_MBTABLE

#define DT_MBTABLE   6

multibyte char table

Definition at line 34 of file types.h.

◆ DT_NUMBER

#define DT_NUMBER   7

a number

Definition at line 35 of file types.h.

◆ DT_PATH

#define DT_PATH   8

a path to a file/directory

Definition at line 36 of file types.h.

◆ DT_QUAD

#define DT_QUAD   9

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

Definition at line 37 of file types.h.

◆ DT_REGEX

#define DT_REGEX   10

regular expressions

Definition at line 38 of file types.h.

◆ DT_SLIST

#define DT_SLIST   11

a list of strings

Definition at line 39 of file types.h.

◆ DT_SORT

#define DT_SORT   12

sorting methods

Definition at line 40 of file types.h.

◆ DT_STRING

#define DT_STRING   13

a string

Definition at line 41 of file types.h.

◆ DT_SYNONYM

#define DT_SYNONYM   14

synonym for another variable

Definition at line 42 of file types.h.

◆ DT_MYVAR

#define DT_MYVAR   15

a user-defined variable (my_foo)

Definition at line 43 of file types.h.

◆ DTYPE

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

Mask for the Data Type.

Definition at line 45 of file types.h.

◆ DT_NO_FLAGS

#define DT_NO_FLAGS   0

No flags are set.

Definition at line 47 of file types.h.

◆ DT_NOT_EMPTY

#define DT_NOT_EMPTY   (1 << 6)

Empty strings are not allowed.

Definition at line 49 of file types.h.

◆ DT_NOT_NEGATIVE

#define DT_NOT_NEGATIVE   (1 << 7)

Negative numbers are not allowed.

Definition at line 50 of file types.h.

◆ DT_MAILBOX

#define DT_MAILBOX   (1 << 8)

Don't perform path expansions.

Definition at line 51 of file types.h.

◆ DT_SENSITIVE

#define DT_SENSITIVE   (1 << 9)

Contains sensitive value, e.g. password.

Definition at line 52 of file types.h.

◆ DT_COMMAND

#define DT_COMMAND   (1 << 10)

A command.

Definition at line 53 of file types.h.

◆ DT_INHERIT_ACC

#define DT_INHERIT_ACC   (1 << 11)

Config item can be Account-specific.

Definition at line 54 of file types.h.

◆ DT_INHERIT_MBOX

#define DT_INHERIT_MBOX   (1 << 12)

Config item can be Mailbox-specific.

Definition at line 55 of file types.h.

◆ DT_PATH_DIR

#define DT_PATH_DIR   (1 << 13)

Path is a directory.

Definition at line 56 of file types.h.

◆ DT_PATH_FILE

#define DT_PATH_FILE   (1 << 14)

Path is a file.

Definition at line 57 of file types.h.

◆ IS_SENSITIVE

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

Definition at line 59 of file types.h.

◆ IS_MAILBOX

#define IS_MAILBOX (   type)    (((type) & (DT_STRING | DT_MAILBOX)) == (DT_STRING | DT_MAILBOX))

Definition at line 60 of file types.h.

◆ IS_COMMAND

#define IS_COMMAND (   type)    (((type) & (DT_STRING | DT_COMMAND)) == (DT_STRING | DT_COMMAND))

Definition at line 61 of file types.h.

◆ DT_SUBTYPE_MASK

#define DT_SUBTYPE_MASK   0x7FC0

Mask for the Data Subtype.

Definition at line 64 of file types.h.

◆ R_REDRAW_NO_FLAGS

#define R_REDRAW_NO_FLAGS   0

No refresh/resort flags.

Definition at line 67 of file types.h.

◆ R_INDEX

#define R_INDEX   (1 << 17)

Redraw the index menu (MENU_INDEX)

Definition at line 68 of file types.h.

◆ R_RESORT

#define R_RESORT   (1 << 18)

Resort the mailbox.

Definition at line 69 of file types.h.

◆ R_RESORT_SUB

#define R_RESORT_SUB   (1 << 19)

Resort subthreads.

Definition at line 70 of file types.h.

◆ R_RESORT_INIT

#define R_RESORT_INIT   (1 << 20)

Resort from scratch.

Definition at line 71 of file types.h.

◆ R_REDRAW_MASK

#define R_REDRAW_MASK   0x01E0000

Mask for the Redraw Flags.

Definition at line 73 of file types.h.

◆ DT_FREE_CONFIGDEF

#define DT_FREE_CONFIGDEF   (1 << 26)

Config item must have its ConfigDef freed.

Definition at line 76 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.

Typedef Documentation

◆ ConfigRedrawFlags

typedef uint32_t ConfigRedrawFlags

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

Definition at line 66 of file types.h.