NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
init.h
Go to the documentation of this file.
1 
24 #ifndef MUTT_INIT_H
25 #define MUTT_INIT_H
26 
27 #include "config.h"
28 #include <stddef.h>
29 #include <stdbool.h>
30 #include "mutt.h"
31 #include "hook.h"
32 #include "mutt_commands.h"
33 
34 struct Buffer;
35 struct ConfigSet;
36 struct ListHead;
37 
38 void init_config (struct ConfigSet *cs);
39 int mutt_command_complete (char *buf, size_t buflen, int pos, int numtabs);
40 int mutt_extract_token (struct Buffer *dest, struct Buffer *tok, TokenFlags flags);
41 HookFlags mutt_get_hook_type (const char *name);
42 int mutt_init (struct ConfigSet *cs, bool skip_sys_rc, struct ListHead *commands);
43 int mutt_label_complete (char *buf, size_t buflen, int numtabs);
44 bool mutt_nm_query_complete (char *buf, size_t buflen, int pos, int numtabs);
45 bool mutt_nm_tag_complete (char *buf, size_t buflen, int numtabs);
46 void mutt_opts_free (void);
47 enum CommandResult mutt_parse_rc_buffer (struct Buffer *line, struct Buffer *token, struct Buffer *err);
48 enum CommandResult mutt_parse_rc_line (const char *line, struct Buffer *err);
49 int mutt_query_variables (struct ListHead *queries, bool show_docs);
50 int mutt_var_value_complete(char *buf, size_t buflen, int pos);
51 
52 #endif /* MUTT_INIT_H */
Container for lots of config items.
Definition: set.h:259
CommandResult
Error codes for command_t parse functions.
Definition: mutt_commands.h:34
int mutt_command_complete(char *buf, size_t buflen, int pos, int numtabs)
Complete a command name.
Definition: init.c:1126
HookFlags mutt_get_hook_type(const char *name)
Find a hook by name.
Definition: init.c:693
int mutt_extract_token(struct Buffer *dest, struct Buffer *tok, TokenFlags flags)
Extract one token from a string.
Definition: init.c:395
String manipulation buffer.
Definition: buffer.h:33
int mutt_var_value_complete(char *buf, size_t buflen, int pos)
Complete a variable/value.
Definition: init.c:1482
uint32_t HookFlags
Flags for mutt_parse_hook(), e.g. MUTT_FOLDER_HOOK.
Definition: hook.h:35
Parse and execute user-defined hooks.
Many unsorted constants and some structs.
int mutt_init(struct ConfigSet *cs, bool skip_sys_rc, struct ListHead *commands)
Initialise NeoMutt.
Definition: init.c:715
bool mutt_nm_tag_complete(char *buf, size_t buflen, int numtabs)
Complete to the nearest notmuch tag.
Definition: init.c:1429
void mutt_opts_free(void)
clean up before quitting
Definition: init.c:638
int mutt_query_variables(struct ListHead *queries, bool show_docs)
Implement the -Q command line flag.
Definition: init.c:1063
void init_config(struct ConfigSet *cs)
Initialise the config system.
Definition: mutt_config.c:770
Definitions of NeoMutt commands.
int mutt_label_complete(char *buf, size_t buflen, int numtabs)
Complete a label name.
Definition: init.c:1308
enum CommandResult mutt_parse_rc_buffer(struct Buffer *line, struct Buffer *token, struct Buffer *err)
Parse a line of user config.
Definition: init.c:980
bool mutt_nm_query_complete(char *buf, size_t buflen, int pos, int numtabs)
Complete to the nearest notmuch tag.
Definition: init.c:1372
uint16_t TokenFlags
Flags for mutt_extract_token(), e.g. MUTT_TOKEN_EQUAL.
Definition: mutt.h:65
enum CommandResult mutt_parse_rc_line(const char *line, struct Buffer *err)
Parse a line of user config.
Definition: init.c:1039