NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
definition.h
Go to the documentation of this file.
1
24#ifndef MUTT_EXPANDO_DEFINITION_H
25#define MUTT_EXPANDO_DEFINITION_H
26
27#include <stdbool.h>
28#include <stdint.h>
29
30struct ExpandoFormat;
32
33typedef uint8_t ExpandoParserFlags;
34#define EP_NO_FLAGS 0
35#define EP_CONDITIONAL (1 << 0)
36#define EP_NO_CUSTOM_PARSE (1 << 1)
37
44{
45 const char *short_name;
46 const char *long_name;
47 short did;
48 short uid;
49
63 struct ExpandoNode *(*parse)(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err);
64};
65
66#endif /* MUTT_EXPANDO_DEFINITION_H */
uint8_t ExpandoParserFlags
Flags for expando_parse(), e.g. EP_CONDITIONAL.
Definition: definition.h:33
Definition of a format string.
Definition: definition.h:44
short uid
Unique ID in domain.
Definition: definition.h:48
const char * long_name
Long Expando name, e.g. "name".
Definition: definition.h:46
short did
Domain ID.
Definition: definition.h:47
const char * short_name
Short Expando name, e.g. "n".
Definition: definition.h:45
Formatting information for an Expando.
Definition: node.h:53
Basic Expando Node.
Definition: node.h:67
Buffer for parsing errors.
Definition: parse.h:37