about summary refs log tree commit diff
path: root/archive.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-09 21:58:10 -0400
committerJune McEnroe <june@causal.agency>2020-04-09 21:58:10 -0400
commit796f5a869e2330818f549ebec74f4b18e937f1c7 (patch)
treed663b7f4eef2fce8fa0144f61482da3e24ebc3d1 /archive.h
parentRender HTML To and Cc lists (diff)
downloadbubger-796f5a869e2330818f549ebec74f4b18e937f1c7.tar.gz
bubger-796f5a869e2330818f549ebec74f4b18e937f1c7.zip
Factor out templateURL
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/archive.h b/archive.h
index 6cc7c5f..5a80748 100644
--- a/archive.h
+++ b/archive.h
@@ -59,7 +59,6 @@ static inline void envelopeFree(struct Envelope envelope) {
 }
 
 #define TEMPLATE(...) #__VA_ARGS__
-#define ESCAPE_URL_CAP(len) (3 * (len))
 
 struct Variable {
 	const char *name;
@@ -73,8 +72,9 @@ int escapeXML(FILE *file, const char *str);
 
 int templateRender(
 	FILE *file, const char *template,
-	const struct Variable *vars, EscapeFn *escape
+	const struct Variable vars[], EscapeFn *escape
 );
+char *templateURL(const char *template, const struct Variable vars[]);
 
 #define MBOX_HEADERS \
 	"Date Subject From Sender Reply-To To Cc Bcc " \