1 /**
2  * @file
3  * Config/command parsing
4  *
5  * @authors
6  * Copyright (C) 1996-2002,2007,2010,2012-2013,2016 Michael R. Elkins <me@mutt.org>
7  * Copyright (C) 2004 g10 Code GmbH
8  *
9  * @copyright
10  * This program is free software: you can redistribute it and/or modify it under
11  * the terms of the GNU General Public License as published by the Free Software
12  * Foundation, either version 2 of the License, or (at your option) any later
13  * version.
14  *
15  * This program is distributed in the hope that it will be useful, but WITHOUT
16  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License along with
21  * this program.  If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 #ifndef MUTT_INIT_H
25 #define MUTT_INIT_H
26 
27 #include <stddef.h>
28 #include <stdbool.h>
29 #include "core/lib.h"
30 #include "mutt.h"
31 #include "hook.h"
32 
33 struct Buffer;
34 struct ConfigSet;
35 struct ListHead;
36 
37 void                  init_config            (struct ConfigSet *cs);
38 int                   mutt_command_complete  (char *buf, size_t buflen, int pos, int numtabs);
39 int                   mutt_extract_token     (struct Buffer *dest, struct Buffer *tok, TokenFlags flags);
40 HookFlags             mutt_get_hook_type     (const char *name);
41 int                   mutt_init              (struct ConfigSet *cs, bool skip_sys_rc, struct ListHead *commands);
42 int                   mutt_label_complete    (char *buf, size_t buflen, int numtabs);
43 bool                  mutt_nm_query_complete (char *buf, size_t buflen, int pos, int numtabs);
44 bool                  mutt_nm_tag_complete   (char *buf, size_t buflen, int numtabs);
45 void                  mutt_opts_free         (void);
46 enum CommandResult    mutt_parse_rc_buffer   (struct Buffer *line, struct Buffer *token, struct Buffer *err);
47 enum CommandResult    mutt_parse_rc_line     (const char *line, struct Buffer *err);
48 int                   mutt_query_variables   (struct ListHead *queries, bool show_docs);
49 int                   mutt_var_value_complete(char *buf, size_t buflen, int pos);
50 
51 #endif /* MUTT_INIT_H */
52