NeoMutt  2024-04-25-85-g27bab4
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
31
36{
39};
40
41typedef uint8_t ExpandoParserFlags;
42#define EP_NO_FLAGS 0
43#define EP_CONDITIONAL (1 << 0)
44#define EP_NO_CUSTOM_PARSE (1 << 1)
45
52{
53 const char *short_name;
54 const char *long_name;
55 short did;
56 short uid;
58
70 struct ExpandoNode *(*parse)(const char *str, const char **parsed_until, int did, int uid, ExpandoParserFlags flags, struct ExpandoParseError *error);
71};
72
73#endif /* MUTT_EXPANDO_DEFINITION_H */
ExpandoDataType
Type of data.
Definition: definition.h:36
@ E_TYPE_STRING
Data is a string.
Definition: definition.h:37
@ E_TYPE_NUMBER
Data is numeric.
Definition: definition.h:38
uint8_t ExpandoParserFlags
Flags for expando_parse(), e.g. EP_CONDITIONAL.
Definition: definition.h:41
Definition of a format string.
Definition: definition.h:52
short uid
Unique ID in domain.
Definition: definition.h:56
const char * long_name
Long Expando name, e.g. "name".
Definition: definition.h:54
short did
Domain ID.
Definition: definition.h:55
enum ExpandoDataType data_type
Type of data.
Definition: definition.h:57
const char * short_name
Short Expando name, e.g. "n".
Definition: definition.h:53
Basic Expando Node.
Definition: node.h:69
Buffer for parsing errors.
Definition: parse.h:34