summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-10-06 18:51:33 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-10-12 19:28:43 +0200
commite43b7a48b08a6bbcb4e730e80395b3257681b33e (patch)
tree85587c7e9ffcd2a01b34f8b6f4ad89d48ec73cca /util.h
parent37afcf334fa1ba0b668bde08e8fcaaa9fd7dfa0d (diff)
parse categories, add multiple field values support (for categories)
Fields with multiple values are separated by '|'. In the future multiple enclosure support might be added. The categories tags are now parsed. This feature is useful for filtering and categorizing. Parsing of nested tags such as <author><name> has been improved. This code has been refactored. RSS <guid> isPermaLink is now handled differently also and will now prefer a permalink with "true" (link) over the ID. In practise multiple <guid> in an item does not happen.
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.h b/util.h
index cf250ec..bdd5664 100644
--- a/util.h
+++ b/util.h
@@ -30,7 +30,8 @@ struct uri {
enum {
FieldUnixTimestamp = 0, FieldTitle, FieldLink, FieldContent,
- FieldContentType, FieldId, FieldAuthor, FieldEnclosure, FieldLast
+ FieldContentType, FieldId, FieldAuthor, FieldEnclosure, FieldCategory,
+ FieldLast
};
int absuri(char *, size_t, const char *, const char *);