summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-08-23 17:30:50 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-08-23 17:30:50 +0200
commit37f5dce067ff8a8445a81b3db53ed3173f39f226 (patch)
treee68bf14be660e9b9c9455c0b1df40ceef50b702d /util.h
parent45fd1505051a4c9c8e20c477d4ea62cfd7535276 (diff)
simplify field map code (add list tagid -> field.
also: - parse tag media:description for RSS. - be more strict about using the order of fields, this is more consistent now. - remove buffer_init: don't allocate buffers on start. - realloc, be slightly more aggresive with memory allocating: initial buffer size 16 to 64 bytes.
Diffstat (limited to 'util.h')
-rw-r--r--util.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/util.h b/util.h
index b329bb5..59ddadf 100644
--- a/util.h
+++ b/util.h
@@ -20,9 +20,11 @@ struct uri {
char port[6]; /* numeric port */
};
-enum { FieldUnixTimestamp = 0, FieldTimeFormatted, FieldTitle, FieldLink,
- FieldContent, FieldContentType, FieldId, FieldAuthor, FieldFeedType,
- FieldLast };
+enum {
+ FieldUnixTimestamp = 0, FieldTimeFormatted, FieldTitle,
+ FieldLink, FieldContent, FieldContentType, FieldId, FieldAuthor,
+ FieldFeedType, FieldLast
+};
int absuri(const char *, const char *, char *, size_t);
int encodeuri(const char *, char *, size_t);