NeoMutt  2020-06-26-89-g172cd3
Teaching an old dog new tricks
DOXYGEN
mutt_commands.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_MUTT_COMMANDS_H
24 #define MUTT_MUTT_COMMANDS_H
25 
26 #include <stdint.h>
27 
28 struct Buffer;
29 
34 {
39 };
40 
44 struct Command
45 {
46  const char *name;
47 
56  enum CommandResult (*parse)(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
57 
58  intptr_t data;
59 };
60 
65 {
70 };
71 
72 /* parameter to parse_mailboxes */
73 #define MUTT_NAMED (1 << 0)
74 
75 extern const struct Command Commands[];
76 
77 #endif /* MUTT_MUTT_COMMANDS_H */
intptr_t data
Data or flags to pass to the command.
Definition: mutt_commands.h:58
CommandResult
Error codes for command_t parse functions.
Definition: mutt_commands.h:33
Error: Can&#39;t help the user.
Definition: mutt_commands.h:35
String manipulation buffer.
Definition: buffer.h:33
A user-callable command.
Definition: mutt_commands.h:44
const char * name
Name of the command.
Definition: mutt_commands.h:46
MuttSetCommand
Flags for parse_set()
Definition: mutt_commands.h:64
enum CommandResult(* parse)(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Function to parse a command.
Definition: mutt_commands.h:56
default is to reset all vars to default
Definition: mutt_commands.h:69
const struct Command Commands[]
Definition: mutt_commands.c:50
default is to unset all vars
Definition: mutt_commands.h:68
Success: Command worked.
Definition: mutt_commands.h:37
Warning: Help given to the user.
Definition: mutt_commands.h:36
Finish: Stop processing this file.
Definition: mutt_commands.h:38
default is to set all vars
Definition: mutt_commands.h:66
default is to invert all vars
Definition: mutt_commands.h:67