23 #ifndef MUTT_MUTT_COMMANDS_H
24 #define MUTT_MUTT_COMMANDS_H
44 #define MUTT_NAMED (1 << 0)
47 #define COMMANDS_REGISTER(cmds) commands_register(cmds, mutt_array_size(cmds))
Convenience wrapper for the library headers.
void mutt_commands_free(void)
Free Commands array.
void mutt_commands_apply(void *data, void(*application)(void *, const struct Command *))
Run a callback function on every Command.
void commands_register(const struct Command *cmdv, const size_t cmds)
Add commands to Commands array.
struct Command * mutt_command_get(const char *s)
Get a Command by its name.
size_t mutt_commands_array(struct Command **first)
Get Commands array.
void mutt_commands_init(void)
Initialize commands array and register default commands.
MuttSetCommand
Flags for parse_set()
@ MUTT_SET_INV
default is to invert all vars
@ MUTT_SET_SET
default is to set all vars
@ MUTT_SET_RESET
default is to reset all vars to default
@ MUTT_SET_UNSET
default is to unset all vars
intptr_t data
Data or flags to pass to the command.