NeoMutt  2021-10-22-8-g9cb437
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 <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 */
CommandResult
Error codes for command_t parse functions.
Definition: command.h:34
Convenience wrapper for the core headers.
Parse and execute user-defined hooks.
uint32_t HookFlags
Flags for mutt_parse_hook(), e.g. MUTT_FOLDER_HOOK.
Definition: hook.h:34
int mutt_extract_token(struct Buffer *dest, struct Buffer *tok, TokenFlags flags)
Extract one token from a string.
Definition: init.c:398
enum CommandResult mutt_parse_rc_line(const char *line, struct Buffer *err)
Parse a line of user config.
Definition: init.c:1043
int mutt_var_value_complete(char *buf, size_t buflen, int pos)
Complete a variable/value.
Definition: init.c:1486
bool mutt_nm_query_complete(char *buf, size_t buflen, int pos, int numtabs)
Complete to the nearest notmuch tag.
Definition: init.c:1376
enum CommandResult mutt_parse_rc_buffer(struct Buffer *line, struct Buffer *token, struct Buffer *err)
Parse a line of user config.
Definition: init.c:985
HookFlags mutt_get_hook_type(const char *name)
Find a hook by name.
Definition: init.c:698
int mutt_label_complete(char *buf, size_t buflen, int numtabs)
Complete a label name.
Definition: init.c:1312
void init_config(struct ConfigSet *cs)
Initialise the config system.
Definition: mutt_config.c:769
int mutt_query_variables(struct ListHead *queries, bool show_docs)
Implement the -Q command line flag.
Definition: init.c:1067
bool mutt_nm_tag_complete(char *buf, size_t buflen, int numtabs)
Complete to the nearest notmuch tag.
Definition: init.c:1433
void mutt_opts_free(void)
Clean up before quitting.
Definition: init.c:643
int mutt_init(struct ConfigSet *cs, bool skip_sys_rc, struct ListHead *commands)
Initialise NeoMutt.
Definition: init.c:720
int mutt_command_complete(char *buf, size_t buflen, int pos, int numtabs)
Complete a command name.
Definition: init.c:1130
Many unsorted constants and some structs.
uint16_t TokenFlags
Flags for mutt_extract_token(), e.g. MUTT_TOKEN_EQUAL.
Definition: mutt.h:65
String manipulation buffer.
Definition: buffer.h:34
Container for lots of config items.
Definition: set.h:260