summary refs log tree commit diff
path: root/archive.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--archive.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/archive.h b/archive.h
index f0572b7..911b7e4 100644
--- a/archive.h
+++ b/archive.h
@@ -134,6 +134,7 @@ struct Variable {
 
 typedef int EscapeFn(FILE *file, const char *str);
 
+int escapeNull(FILE *file, const char *str);
 int escapeURL(FILE *file, const char *str);
 int escapeXML(FILE *file, const char *str);
 
@@ -143,6 +144,12 @@ int templateRender(
 );
 char *templateURL(const char *template, const struct Variable vars[]);
 
+char *decodeHeader(const char *header);
+int decodeContent(
+	FILE *file, EscapeFn *escape,
+	const struct BodyPart *part, const char *content
+);
+
 static inline const char *pathUID(uint32_t uid, const char *type) {
 	static char buf[PATH_MAX];
 	snprintf(buf, sizeof(buf), "UID/%" PRIu32 ".%s", uid, type);