NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
command.h
Go to the documentation of this file.
1
23#ifndef MUTT_CORE_COMMAND_H
24#define MUTT_CORE_COMMAND_H
25
26#include <stdint.h>
27
28struct Buffer;
29
34{
39};
40
48struct Command
49{
50 const char *name;
51
63 enum CommandResult (*parse)(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
64
65 intptr_t data;
66};
67
68#endif /* MUTT_CORE_COMMAND_H */
CommandResult
Error codes for command_t parse functions.
Definition: command.h:34
@ MUTT_CMD_SUCCESS
Success: Command worked.
Definition: command.h:37
@ MUTT_CMD_ERROR
Error: Can't help the user.
Definition: command.h:35
@ MUTT_CMD_WARNING
Warning: Help given to the user.
Definition: command.h:36
@ MUTT_CMD_FINISH
Finish: Stop processing this file.
Definition: command.h:38
String manipulation buffer.
Definition: buffer.h:34
enum CommandResult(* parse)(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Definition: command.h:63
intptr_t data
Data or flags to pass to the command.
Definition: command.h:65
const char * name
Name of the command.
Definition: command.h:50