summary refs log tree commit diff
path: root/atom.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-13 11:47:36 -0400
committerJune McEnroe <june@causal.agency>2020-04-13 11:47:36 -0400
commit79efea7ad5ffa571d27321243e25c372ab4303b2 (patch)
treeff31d350114e46f8c2402405e82b11c34613e3b9 /atom.c
parentFix concatHTML thread nesting (diff)
downloadbubger-79efea7ad5ffa571d27321243e25c372ab4303b2.tar.gz
bubger-79efea7ad5ffa571d27321243e25c372ab4303b2.zip
Rename atom rendering functions
Again, probably.
Diffstat (limited to '')
-rw-r--r--atom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/atom.c b/atom.c
index bf4b456..83a4457 100644
--- a/atom.c
+++ b/atom.c
@@ -30,7 +30,7 @@ static char *atomID(const char *messageID) {
 	return templateURL("mailto:?Message-Id=[messageID]", vars);
 }
 
-int atomEntryHead(FILE *file, const struct Envelope *envelope) {
+int atomEntryOpen(FILE *file, const struct Envelope *envelope) {
 	char *id = atomID(envelope->messageID);
 	char date[sizeof("0000-00-00T00:00:00Z")];
 	strftime(date, sizeof(date), "%FT%TZ", gmtime(&envelope->utc));
@@ -58,12 +58,12 @@ int atomEntryHead(FILE *file, const struct Envelope *envelope) {
 	return error;
 }
 
-int atomEntryTail(FILE *file) {
+int atomEntryClose(FILE *file) {
 	int n = fprintf(file, "</entry>\n");
 	return (n < 0 ? n : 0);
 }
 
-int atomFeedHead(FILE *file, const struct Envelope *envelope) {
+int atomFeedOpen(FILE *file, const struct Envelope *envelope) {
 	char *id = atomID(envelope->messageID);
 	char date[sizeof("0000-00-00T00:00:00Z")];
 	strftime(date, sizeof(date), "%FT%TZ", gmtime(&(time_t) { time(NULL) }));
@@ -93,7 +93,7 @@ int atomFeedHead(FILE *file, const struct Envelope *envelope) {
 	return error;
 }
 
-int atomFeedTail(FILE *file) {
+int atomFeedClose(FILE *file) {
 	int n = fprintf(file, "</feed>\n");
 	return (n < 0 ? n : 0);
 }