NeoMutt  2024-10-02-34-g9dd811
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
71 struct ExpandoNode *(*parse)(const char *str, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err);
72};
73
74#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:67
Buffer for parsing errors.
Definition: parse.h:35