diff options
author | June McEnroe <june@causal.agency> | 2020-04-14 11:07:33 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-14 11:07:33 -0400 |
commit | 8f6d0a2c1c54542ec32a627054bfe1d015480c87 (patch) | |
tree | 7410ba416a2e7b4641320c34c9beccb146673932 /archive.h | |
parent | Use mid: URLs for Atom IDs (diff) | |
download | bubger-8f6d0a2c1c54542ec32a627054bfe1d015480c87.tar.gz bubger-8f6d0a2c1c54542ec32a627054bfe1d015480c87.zip |
Add decoding stubs
Diffstat (limited to '')
-rw-r--r-- | archive.h | 7 |
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); |