From 8f6d0a2c1c54542ec32a627054bfe1d015480c87 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 14 Apr 2020 11:07:33 -0400 Subject: Add decoding stubs --- archive.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'archive.h') 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); -- cgit 1.4.1