Finish the caml lua<->C bindings generator.
[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 address_t *EnvFrom;
25 WHERE address_t *From;
26
27 WHERE char *AssumedCharset;
28 WHERE char *AttachSep;
29 WHERE char *Attribution;
30 WHERE char *AttachFormat;
31 WHERE char *ComposeFormat;
32 WHERE char *ConfigCharset;
33 WHERE char *ContentType;
34 WHERE char *DefaultHook;
35 WHERE char *DateFmt;
36 WHERE char *DisplayFilter;
37 WHERE char *EditorHeaders;
38 WHERE char *FileCharset;
39 WHERE char *FolderFormat;
40 WHERE char *ForwFmt;
41 WHERE char *Fqdn;
42 WHERE char *HdrFmt;
43 WHERE char *Hostname;
44
45 WHERE char *ImapAuthenticators INITVAL (NULL);
46 WHERE char *ImapDelimChars INITVAL (NULL);
47 WHERE char *ImapHeaders;
48 WHERE char *ImapHomeNamespace INITVAL (NULL);
49 WHERE char *ImapLogin INITVAL (NULL);
50 WHERE char *ImapPass INITVAL (NULL);
51 WHERE char *ImapUser INITVAL (NULL);
52 WHERE char *Inbox;
53 WHERE char *Ispell;
54 WHERE char *Locale;
55 WHERE char *MailcapPath;
56 WHERE char *Maildir;
57
58 #ifdef USE_HCACHE
59 WHERE char *HeaderCache;
60 #if defined(HAVE_GDBM) || defined(HAVE_DB4)
61 WHERE char *HeaderCachePageSize;
62 #endif /* HAVE_GDBM || HAVE_DB4 */
63 #endif /* USE_HCACHE */
64 WHERE char *MhFlagged;
65 WHERE char *MhReplied;
66 WHERE char *MhUnseen;
67 WHERE char *MsgFmt;
68 WHERE char *MsgIdFormat;
69
70 WHERE rx_t AttachRemindRegexp;
71 WHERE rx_t Mask;
72 WHERE rx_t QuoteRegexp;
73 WHERE rx_t ReplyRegexp;
74 WHERE rx_t Smileys;
75 WHERE rx_t StripWasRegexp;
76
77 WHERE char *Preconnect INITVAL (NULL);
78 WHERE char *Tunnel INITVAL (NULL);
79 WHERE short NetInc;
80
81 WHERE char *Mixmaster;
82 WHERE char *MixEntryFormat;
83
84 WHERE char *OperatingSystem INITVAL (NULL);
85
86 WHERE char *Muttrc INITVAL (NULL);
87
88 #ifdef USE_NNTP
89 WHERE char *NewsCacheDir;
90 WHERE char *GroupFormat;
91 WHERE char *Inews;
92 WHERE char *NewsServer;
93 WHERE char *NntpUser;
94 WHERE char *NntpPass;
95 WHERE char *NewsRc;
96 #endif
97 WHERE char *Outbox;
98 WHERE char *Pager;
99 WHERE char *PagerFmt;
100 WHERE char *PipeSep;
101
102 WHERE char *PopAuthenticators INITVAL (NULL);
103 WHERE short PopCheckTimeout;
104 WHERE char *PopHost;
105 WHERE char *PopPass INITVAL (NULL);
106 WHERE char *PopUser INITVAL (NULL);
107
108 WHERE char *PostIndentString;
109 WHERE char *Postponed;
110 WHERE char *Prefix;
111 WHERE char *PrintCmd;
112 WHERE char *QueryCmd;
113 WHERE char *Realname;
114 WHERE char *SendCharset;
115 WHERE char *SidebarDelim;
116 WHERE char *SidebarNumberFormat;
117 WHERE char *SidebarBoundary;
118 WHERE char *Signature;
119 WHERE char *SignOffString;
120 WHERE char *SimpleSearch;
121
122 #if defined(USE_LIBESMTP)
123 WHERE char *SmtpAuthUser;
124 WHERE char *SmtpAuthPass;
125 WHERE char *SmtpHost;
126 WHERE unsigned short SmtpPort;
127 WHERE char *SmtpUseTLS;
128 #endif
129 WHERE char *Spoolfile;
130 WHERE char *SpamSep;
131
132 #if defined(USE_SSL) || defined(USE_GNUTLS)
133 WHERE char *SslCertFile INITVAL (NULL);
134 #endif
135 #if defined(USE_SSL)
136 WHERE char *SslEntropyFile INITVAL (NULL);
137 #endif
138 #ifdef USE_SSL
139 WHERE char *SslClientCert INITVAL (NULL);
140 WHERE string_list_t *SslSessionCerts INITVAL (NULL);
141 #endif
142 #ifdef USE_GNUTLS
143 WHERE short SslDHPrimeBits;
144 WHERE char *SslCACertFile INITVAL (NULL);
145 #endif
146 WHERE char *StChars;
147 WHERE char *Status;
148 WHERE char *Tochars;
149 WHERE char *TrashPath;
150 WHERE char *XtermTitle;
151 WHERE char *XtermLeave;
152 WHERE char *XtermIcon;
153
154 WHERE char *CurrentFolder;
155 WHERE char *LastFolder;
156
157 WHERE string_list_t *AutoViewList INITVAL (0);
158 WHERE string_list_t *AlternativeOrderList INITVAL (0);
159 WHERE string_list_t *AttachAllow INITVAL(0);
160 WHERE string_list_t *AttachExclude INITVAL(0);
161 WHERE string_list_t *InlineAllow INITVAL(0);
162 WHERE string_list_t *InlineExclude INITVAL(0);
163 WHERE string_list_t *HeaderOrderList INITVAL (0);
164 WHERE string_list_t *Ignore INITVAL (0);
165 WHERE string_list_t *MimeLookupList INITVAL (0);
166 WHERE string_list_t *UnIgnore INITVAL (0);
167
168 WHERE rx_t *Alternates INITVAL (0);
169 WHERE rx_t *UnAlternates INITVAL (0);
170 WHERE rx_t *MailLists INITVAL (0);
171 WHERE rx_t *UnMailLists INITVAL (0);
172 WHERE rx_t *SubscribedLists INITVAL (0);
173 WHERE rx_t *UnSubscribedLists INITVAL (0);
174 WHERE rx_t *SpamList INITVAL (0);
175 WHERE rx_t *NoSpamList INITVAL (0);
176
177 /* bit vector for boolean variables */
178 #ifdef MAIN_C
179 unsigned char Options[(OPTMAX + 7) / 8];
180 #else
181 extern unsigned char Options[];
182 #endif
183
184 /* bit vector for the yes/no/ask variable type */
185 #ifdef MAIN_C
186 unsigned char QuadOptions[(OPT_MAX * 2 + 7) / 8];
187 #else
188 extern unsigned char QuadOptions[];
189 #endif
190
191 #ifdef USE_NNTP
192 WHERE short NewsPollTimeout;
193 WHERE short NntpContext;
194 #endif
195
196 WHERE short ConnectTimeout;
197 WHERE short HistSize;
198 WHERE short MenuContext;
199 WHERE short PagerContext;
200 WHERE short PagerIndexLines;
201 WHERE short ReadInc;
202 WHERE short SendmailWait;
203 WHERE short SleepTime INITVAL (1);
204 WHERE short Timeout;
205 WHERE short Umask INITVAL (0077);
206 WHERE short WrapMargin;
207 WHERE short WriteInc;
208 WHERE short MaxDispRecips;
209 WHERE short MaxLineLength;
210
211 WHERE short ScoreThresholdDelete;
212 WHERE short ScoreThresholdRead;
213 WHERE short ScoreThresholdFlag;
214
215 WHERE short DrawFullLine INITVAL (0);
216 WHERE short SidebarWidth;
217
218 WHERE short ImapKeepalive;
219 WHERE short ImapBuffyTimeout;
220
221 /* flags for received signals */
222 WHERE SIG_ATOMIC_VOLATILE_T SigAlrm INITVAL (0);
223 WHERE SIG_ATOMIC_VOLATILE_T SigInt INITVAL (0);
224 WHERE SIG_ATOMIC_VOLATILE_T SigWinch INITVAL (0);
225
226 WHERE int CurrentMenu;
227
228 WHERE string_list_t *UserHeader INITVAL (0);
229
230 /*-- formerly in pgp.h --*/
231 WHERE rx_t PgpGoodSign;
232 WHERE char *PgpSignAs;
233 WHERE short PgpTimeout;
234 WHERE char *PgpEntryFormat;
235 WHERE char *PgpClearSignCommand;
236 WHERE char *PgpDecodeCommand;
237 WHERE char *PgpVerifyCommand;
238 WHERE char *PgpDecryptCommand;
239 WHERE char *PgpSignCommand;
240 WHERE char *PgpEncryptSignCommand;
241 WHERE char *PgpEncryptOnlyCommand;
242 WHERE char *PgpImportCommand;
243 WHERE char *PgpExportCommand;
244 WHERE char *PgpVerifyKeyCommand;
245 WHERE char *PgpListSecringCommand;
246 WHERE char *PgpListPubringCommand;
247 WHERE char *PgpGetkeysCommand;
248
249 /*-- formerly in smime.h --*/
250 WHERE char *SmimeDefaultKey;
251 WHERE char *SmimeCryptAlg;
252 WHERE short SmimeTimeout;
253 WHERE char *SmimeCertificates;
254 WHERE char *SmimeKeys;
255 WHERE char *SmimeCALocation;
256 WHERE char *SmimeVerifyCommand;
257 WHERE char *SmimeVerifyOpaqueCommand;
258 WHERE char *SmimeDecryptCommand;
259 WHERE char *SmimeSignCommand;
260 WHERE char *SmimeSignOpaqueCommand;
261 WHERE char *SmimeEncryptCommand;
262 WHERE char *SmimeGetSignerCertCommand;
263 WHERE char *SmimePk7outCommand;
264 WHERE char *SmimeGetCertCommand;
265 WHERE char *SmimeImportCertCommand;
266 WHERE char *SmimeGetCertEmailCommand;
267
268 #ifdef MAIN_C
269 const char *Weekdays[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
270 const char *Months[] =
271   { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
272 "Nov", "Dec", "ERR" };
273 #else
274 extern const char *Weekdays[];
275 extern const char *Months[];
276 #endif
277
278 #endif /* !_GLOBALS_H */