Replace deprecated luaL_openlib() by luaL_register()
[apps/madmutt.git] / globals.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9 #ifndef _GLOBALS_H
10 #define _GLOBALS_H
11
12 #include <lib-lib/lib-lib.h>
13
14 WHERE void (*mutt_error) (const char *, ...) __attribute__((format(printf, 1, 2))) ;
15 WHERE void (*mutt_message) (const char *, ...) __attribute__((format(printf, 1, 2))) ;
16
17 WHERE CONTEXT *Context;
18
19 WHERE char Errorbuf[STRING];
20 WHERE char AttachmentMarker[STRING];
21
22 WHERE char Quotebuf[STRING];
23
24 WHERE char *AttachSep;
25 WHERE char *Attribution;
26 WHERE char *AttachFormat;
27 WHERE char *ComposeFormat;
28 WHERE char *ConfigCharset;
29 WHERE char *ContentType;
30 WHERE char *DefaultHook;
31 WHERE char *DateFmt;
32 WHERE char *DisplayFilter;
33 WHERE char *EditorHeaders;
34 WHERE char *FileCharset;
35 WHERE char *FolderFormat;
36 WHERE char *ForwFmt;
37 WHERE char *HdrFmt;
38
39 WHERE char *ImapAuthenticators INITVAL (NULL);
40 WHERE char *ImapDelimChars INITVAL (NULL);
41 WHERE char *ImapHeaders;
42 WHERE char *ImapLogin INITVAL (NULL);
43 WHERE char *ImapPass INITVAL (NULL);
44 WHERE char *ImapUser INITVAL (NULL);
45 WHERE char *Inbox;
46 WHERE char *Locale;
47 WHERE char *Maildir;
48
49 WHERE char *MhFlagged;
50 WHERE char *MhReplied;
51 WHERE char *MhUnseen;
52 WHERE char *MsgFmt;
53 WHERE char *MsgIdFormat;
54
55 WHERE rx_t AttachRemindRegexp;
56 WHERE rx_t Mask;
57 WHERE rx_t QuoteRegexp;
58 WHERE rx_t ReplyRegexp;
59 WHERE rx_t Smileys;
60 WHERE rx_t StripWasRegexp;
61
62 WHERE char *Preconnect INITVAL (NULL);
63 WHERE char *Tunnel INITVAL (NULL);
64 WHERE short NetInc;
65 WHERE char *Muttrc INITVAL (NULL);
66
67 WHERE char *PagerFmt;
68 WHERE char *PipeSep;
69
70 WHERE char *PopAuthenticators INITVAL (NULL);
71 WHERE short PopCheckTimeout;
72 WHERE char *PopHost;
73 WHERE char *PopPass INITVAL (NULL);
74 WHERE char *PopUser INITVAL (NULL);
75
76 WHERE char *Postponed;
77 WHERE char *Prefix;
78 WHERE char *PrintCmd;
79 WHERE char *QueryCmd;
80 WHERE char *Realname;
81 WHERE char *SidebarNumberFormat;
82 WHERE char *SidebarBoundary;
83 WHERE char *SignOffString;
84 WHERE char *SimpleSearch;
85
86 WHERE char *Spoolfile;
87
88 WHERE char *StChars;
89 WHERE char *Status;
90 WHERE char *Tochars;
91 WHERE char *TrashPath;
92 WHERE char *XtermTitle;
93 WHERE char *XtermLeave;
94 WHERE char *XtermIcon;
95
96 WHERE char *CurrentFolder;
97 WHERE char *LastFolder;
98
99 WHERE string_list_t *AttachAllow INITVAL(0);
100 WHERE string_list_t *AttachExclude INITVAL(0);
101 WHERE string_list_t *InlineAllow INITVAL(0);
102 WHERE string_list_t *InlineExclude INITVAL(0);
103
104 /* bit vector for boolean variables */
105 WHERE unsigned char Options[(OPTMAX + 7) / 8];
106
107 /* bit vector for the yes/no/ask variable type */
108 WHERE unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
109
110 WHERE short ConnectTimeout;
111 WHERE short HistSize;
112 WHERE short MenuContext;
113 WHERE short PagerContext;
114 WHERE short PagerIndexLines;
115 WHERE short ReadInc;
116 WHERE short SleepTime INITVAL (1);
117 WHERE short Timeout;
118 WHERE short Umask INITVAL (0077);
119 WHERE short WrapMargin;
120 WHERE short WriteInc;
121 WHERE short MaxDispRecips;
122 WHERE short MaxLineLength;
123
124 WHERE short DrawFullLine INITVAL (0);
125 WHERE short SidebarWidth;
126
127 WHERE short ImapKeepalive;
128 WHERE short ImapBuffyTimeout;
129
130 /* flags for received signals */
131 WHERE sig_atomic_t SigAlrm INITVAL (0);
132 WHERE sig_atomic_t SigInt INITVAL (0);
133 WHERE sig_atomic_t SigWinch INITVAL (0);
134 WHERE sig_atomic_t SigChild INITVAL (0);
135
136 WHERE int CurrentMenu;
137
138 WHERE string_list_t *UserHeader INITVAL (0);
139
140 /*-- formerly in pgp.h --*/
141 WHERE char *PgpSignAs;
142
143 /*-- formerly in smime.h --*/
144 WHERE char *SmimeDefaultKey;
145 WHERE char *SmimeCryptAlg;
146
147 #endif /* !_GLOBALS_H */