diff options
Diffstat (limited to '')
-rw-r--r-- | archive.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archive.h b/archive.h index 8d96878..3d3cfc5 100644 --- a/archive.h +++ b/archive.h @@ -58,6 +58,7 @@ static inline void envelopeFree(struct Envelope envelope) { } #define TEMPLATE(...) #__VA_ARGS__ +#define ESCAPE_URL_CAP(len) (3 * (len)) struct Variable { const char *name; @@ -66,6 +67,9 @@ struct Variable { typedef int EscapeFn(FILE *file, const char *str); +int escapeURL(FILE *file, const char *str); +int escapeXML(FILE *file, const char *str); + int templateRender( FILE *file, const char *template, const struct Variable *vars, EscapeFn *escape |