23#ifndef MUTT_CORE_COMMAND_H
24#define MUTT_CORE_COMMAND_H
#define ARRAY_HEAD(name, type)
Define a named struct for arrays of elements of a certain type.
bool commands_register(struct CommandArray *ca, const struct Command *cmds)
Add commands to Commands array.
const struct Command * commands_get(struct CommandArray *ca, const char *name)
Get a Command by its name.
void commands_clear(struct CommandArray *ca)
Clear an Array of Commands.
bool commands_init(void)
Initialize commands array and register default commands.
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.
Convenience wrapper for the library headers.
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.