NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
mutt_globals.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_GLOBALS_H
24 #define MUTT_GLOBALS_H
25 
26 #include "config.h"
27 #include <signal.h> // IWYU pragma: keep
28 #include <stdbool.h>
29 #include "mutt/lib.h"
30 #include "menu/lib.h"
31 #include "where.h"
32 
33 #ifdef MAIN_C
34 /* so that global vars get included */
35 #include "mx.h"
36 #include "sort.h"
37 #include "ncrypt/lib.h"
38 #endif /* MAIN_C */
39 
40 WHERE struct Context *Context;
41 
43 WHERE char ErrorBuf[256];
44 
45 WHERE char *HomeDir;
47 
48 WHERE char *Username;
49 
52 
53 extern const char *GitVer;
54 
56 
57 /* Lists of strings */
58 WHERE struct ListHead AlternativeOrderList INITVAL(STAILQ_HEAD_INITIALIZER(AlternativeOrderList));
59 WHERE struct ListHead AutoViewList INITVAL(STAILQ_HEAD_INITIALIZER(AutoViewList));
60 WHERE struct ListHead HeaderOrderList INITVAL(STAILQ_HEAD_INITIALIZER(HeaderOrderList));
61 WHERE struct ListHead MimeLookupList INITVAL(STAILQ_HEAD_INITIALIZER(MimeLookupList));
62 WHERE struct ListHead Muttrc INITVAL(STAILQ_HEAD_INITIALIZER(Muttrc));
63 WHERE struct ListHead TempAttachmentsList INITVAL(STAILQ_HEAD_INITIALIZER(TempAttachmentsList));
64 WHERE struct ListHead UserHeader INITVAL(STAILQ_HEAD_INITIALIZER(UserHeader));
65 
66 /* flags for received signals */
67 WHERE SIG_ATOMIC_VOLATILE_T SigInt;
68 WHERE SIG_ATOMIC_VOLATILE_T SigWinch;
69 
71 
72 #endif /* MUTT_GLOBALS_H */
WHERE char * HomeDir
User&#39;s home directory.
Definition: mutt_globals.h:45
MenuType
Types of GUI selections.
Definition: type.h:35
A Hash Table.
Definition: hash.h:87
WHERE SIG_ATOMIC_VOLATILE_T SigInt
true after SIGINT is received
Definition: mutt_globals.h:67
WHERE struct Context * Context
Definition: mutt_globals.h:40
#define WHERE
Definition: where.h:30
WHERE char ErrorBuf[256]
Copy of the last error message.
Definition: mutt_globals.h:43
WHERE struct ListHead AlternativeOrderList INITVAL(STAILQ_HEAD_INITIALIZER(AlternativeOrderList))
List of preferred mime types to display.
Assorted sorting methods.
WHERE char * Username
User&#39;s login name.
Definition: mutt_globals.h:48
WHERE enum MenuType CurrentMenu
Current Menu, e.g. MENU_PAGER.
Definition: mutt_globals.h:70
API for mailboxes.
WHERE char * ShortHostname
Short version of the hostname.
Definition: mutt_globals.h:46
API for encryption/signing of emails.
An evil macro.
WHERE char * LastFolder
Previously selected mailbox.
Definition: mutt_globals.h:51
WHERE char * CurrentFolder
Currently selected mailbox.
Definition: mutt_globals.h:50
#define STAILQ_HEAD_INITIALIZER(head)
Definition: queue.h:324
WHERE bool ErrorBufMessage
true if the last message was an error
Definition: mutt_globals.h:42
const char * GitVer
Convenience wrapper for the library headers.
WHERE struct HashTable * TagFormats
Hash Table of tag-formats (tag -> format string)
Definition: mutt_globals.h:55
WHERE SIG_ATOMIC_VOLATILE_T SigWinch
true after SIGWINCH is received
Definition: mutt_globals.h:68