23#ifndef MUTT_CORE_COMMAND_H
24#define MUTT_CORE_COMMAND_H
void commands_init(void)
Initialize commands array and register default commands.
void commands_register(const struct Command *cmds, const size_t num_cmds)
Add commands to Commands array.
size_t commands_array(struct Command **first)
Get Commands array.
CommandResult
Error codes for command_t parse functions.
@ MUTT_CMD_SUCCESS
Success: Command worked.
@ MUTT_CMD_ERROR
Error: Can't help the user.
@ MUTT_CMD_WARNING
Warning: Help given to the user.
@ MUTT_CMD_FINISH
Finish: Stop processing this file.
void commands_cleanup(void)
Free Commands array.
struct Command * command_get(const char *s)
Get a Command by its name.
String manipulation buffer.
enum CommandResult(* parse)(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
intptr_t data
Data or flags to pass to the command.
const char * name
Name of the command.