forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotos.h
93 lines (81 loc) · 3.12 KB
/
protos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/**
* @file
* Prototypes for many functions
*
* @authors
* Copyright (C) 1996-2000,2007,2010,2013 Michael R. Elkins <[email protected]>
* Copyright (C) 2013 Karel Zak <[email protected]>
*
* @copyright
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 2 of the License, or (at your option) any later
* version.
*
* 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/>.
*/
#ifndef MUTT_PROTOS_H
#define MUTT_PROTOS_H
#include "config.h"
#include <stddef.h>
#include <regex.h>
#include <stdbool.h>
#include <stdio.h>
#include "mutt.h"
#include "keymap.h"
#include "ncrypt/ncrypt.h"
struct Buffer;
struct Context;
struct Email;
struct EmailList;
struct EnterState;
struct Mailbox;
struct NotifyCallback;
/**
* enum XdgType - XDG variable types
*/
enum XdgType
{
XDG_CONFIG_HOME, ///< XDG home dir: ~/.config
XDG_CONFIG_DIRS, ///< XDG system dir: /etc/xdg
};
/**
* enum EvMessage - Edit or View a message
*/
enum EvMessage
{
EVM_VIEW, ///< View the message
EVM_EDIT, ///< Edit the message
};
int mutt_ev_message(struct Mailbox *m, struct EmailList *el, enum EvMessage action);
int mutt_system(const char *cmd);
int mutt_set_xdg_path(enum XdgType type, char *buf, size_t bufsize);
void mutt_help(enum MenuType menu, int wraplan);
void mutt_make_help(char *d, size_t dlen, const char *txt, enum MenuType menu, int op);
void mutt_set_flag_update(struct Mailbox *m, struct Email *e, int flag, bool bf, bool upd_mbox);
#define mutt_set_flag(m, e, flag, bf) mutt_set_flag_update(m, e, flag, bf, true)
void mutt_signal_init(void);
void mutt_emails_set_flag(struct Mailbox *m, struct EmailList *el, int flag, bool bf);
int mutt_change_flag(struct Mailbox *m, struct EmailList *el, bool bf);
int mutt_complete(char *buf, size_t buflen);
int mutt_prepare_template(FILE *fp, struct Mailbox *m, struct Email *e_new, struct Email *e, bool resend);
int mutt_enter_string(char *buf, size_t buflen, int col, CompletionFlags flags);
int mutt_enter_string_full(char *buf, size_t buflen, int col, CompletionFlags flags, bool multiple,
char ***files, int *numfiles, struct EnterState *state);
int mutt_get_postponed(struct Context *ctx, struct Email *hdr, struct Email **cur, struct Buffer *fcc);
SecurityFlags mutt_parse_crypt_hdr(const char *p, bool set_empty_signas, SecurityFlags crypt_app);
int mutt_num_postponed(struct Mailbox *m, bool force);
int mutt_thread_set_flag(struct Email *e, int flag, bool bf, bool subthread);
void mutt_update_num_postponed(void);
int mutt_is_quote_line(char *buf, regmatch_t *pmatch);
#ifndef HAVE_WCSCASECMP
int wcscasecmp(const wchar_t *a, const wchar_t *b);
#endif
int mutt_reply_observer(struct NotifyCallback *nc);
#endif /* MUTT_PROTOS_H */