NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
icommands.h
Go to the documentation of this file.
1 
24 #ifndef MUTT_ICOMMANDS_H
25 #define MUTT_ICOMMANDS_H
26 
27 #include <stdint.h>
28 #include "mutt_commands.h"
29 
30 struct Buffer;
31 
35 struct ICommand
36 {
37  char *name;
38 
47  enum CommandResult (*parse)(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
48 
49  intptr_t data;
50 };
51 
52 enum CommandResult mutt_parse_icommand(/* const */ char *line, struct Buffer *err);
53 
54 #endif /* MUTT_ICOMMANDS_H */
CommandResult
Error codes for command_t parse functions.
Definition: mutt_commands.h:34
char * name
Name of the command.
Definition: icommands.h:37
String manipulation buffer.
Definition: buffer.h:33
An Informational Command.
Definition: icommands.h:35
enum CommandResult(* parse)(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Function to parse information commands.
Definition: icommands.h:47
Definitions of NeoMutt commands.
enum CommandResult mutt_parse_icommand(char *line, struct Buffer *err)
Parse an informational command.
Definition: icommands.c:78
intptr_t data
Private data to pass to the command.
Definition: icommands.h:49