NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
render.c
Go to the documentation of this file.
1
31#include "config.h"
32#include "render.h"
33#include "node.h"
34
45int node_render(const struct ExpandoNode *node, const struct ExpandoRenderCallback *erc,
46 struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags)
47{
48 if (!node || !node->render)
49 return 0;
50
51 return node->render(node, erc, buf, max_cols, data, flags);
52}
Basic Expando Node.
int node_render(const struct ExpandoNode *node, const struct ExpandoRenderCallback *erc, struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags)
Render a tree of ExpandoNodes into a string.
Definition: render.c:45
Render Expandos using Data.
uint8_t MuttFormatFlags
Flags for expando_render(), e.g. MUTT_FORMAT_FORCESUBJ.
Definition: render.h:32
String manipulation buffer.
Definition: buffer.h:36
Basic Expando Node.
Definition: node.h:67
int(* render)(const struct ExpandoNode *node, const struct ExpandoRenderCallback *erc, struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags)
Definition: node.h:92