NeoMutt  2020-09-25
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 <stdint.h>
31 #include "mutt.h"
32 #include "hook.h"
33 #include "mutt_commands.h"
34 
35 struct Buffer;
36 struct ConfigSet;
37 struct ListHead;
38 
39 struct ConfigSet * init_config (size_t size);
40 int mutt_command_complete (char *buf, size_t buflen, int pos, int numtabs);
41 int mutt_extract_token (struct Buffer *dest, struct Buffer *tok, TokenFlags flags);
42 HookFlags mutt_get_hook_type (const char *name);
43 int mutt_init (struct ConfigSet *cs, bool skip_sys_rc, struct ListHead *commands);
44 int mutt_label_complete (char *buf, size_t buflen, int numtabs);
45 bool mutt_nm_query_complete (char *buf, size_t buflen, int pos, int numtabs);
46 bool mutt_nm_tag_complete (char *buf, size_t buflen, int numtabs);
47 void mutt_opts_free (void);
48 enum CommandResult mutt_parse_rc_buffer (struct Buffer *line, struct Buffer *token, struct Buffer *err);
49 enum CommandResult mutt_parse_rc_line (const char *line, struct Buffer *err);
50 int mutt_query_variables (struct ListHead *queries, bool show_docs);
51 int mutt_var_value_complete(char *buf, size_t buflen, int pos);
52 
53 #endif /* MUTT_INIT_H */
Container for lots of config items.
Definition: set.h:228
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:695
int mutt_extract_token(struct Buffer *dest, struct Buffer *tok, TokenFlags flags)
Extract one token from a string.
Definition: init.c:394
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:43
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:717
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:631
int mutt_query_variables(struct ListHead *queries, bool show_docs)
Implement the -Q command line flag.
Definition: init.c:1063
struct ConfigSet * init_config(size_t size)
Initialise the config system.
Definition: mutt_config.c:849
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:981
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:69
enum CommandResult mutt_parse_rc_line(const char *line, struct Buffer *err)
Parse a line of user config.
Definition: init.c:1039