NeoMutt  2022-04-29-215-gc12b98
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 "core/lib.h"
29
30struct Buffer;
31
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
52enum 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: command.h:34
Convenience wrapper for the core headers.
enum CommandResult mutt_parse_icommand(const char *line, struct Buffer *err)
Parse an informational command.
Definition: icommands.c:91
String manipulation buffer.
Definition: buffer.h:34
An Informational Command.
Definition: icommands.h:36
enum CommandResult(* parse)(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Function to parse information commands.
Definition: icommands.h:47
intptr_t data
Private data to pass to the command.
Definition: icommands.h:49
char * name
Name of the command.
Definition: icommands.h:37