diff options
author | Dave Beckett <dave@dajobe.org> | 2009-02-22 22:22:35 +0000 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2009-02-22 22:22:35 +0000 |
commit | a59e6816ef92e8ee7acd1e4d3bb5c909f2ae4c64 (patch) | |
tree | 81d7c3f33a0bb8ec51151218b05caa2ab3064abb /src/raptor_rss.h | |
parent | 668c7a9111fb3cadd7d21a5053b5c71e394b5f3b (diff) | |
download | raptor-a59e6816ef92e8ee7acd1e4d3bb5c909f2ae4c64.tar.gz |
RAPTOR_RSS_BLOCKS_SIZE 10 after removing rss container
Diffstat (limited to 'src/raptor_rss.h')
-rw-r--r-- | src/raptor_rss.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/raptor_rss.h b/src/raptor_rss.h index 213c8121..c281cafc 100644 --- a/src/raptor_rss.h +++ b/src/raptor_rss.h @@ -33,6 +33,7 @@ extern "C" { typedef enum { +/* CONTAINERs */ /* common */ RAPTOR_RSS_CHANNEL, RAPTOR_RSS_IMAGE, @@ -47,15 +48,16 @@ typedef enum { /* itunes owner */ RAPTOR_ITUNES_OWNER, - /* also common, but IGNORED */ + /* containers but IGNORED */ RAPTOR_RSS_SKIPHOURS, RAPTOR_RSS_SKIPDAYS, - /* metadata blocks */ +/* metadata BLOCKs */ RAPTOR_RSS_ENCLOSURE, RAPTOR_ATOM_CATEGORY, RAPTOR_RSS_SOURCE, +/* serializing containers */ RAPTOR_ATOM_FEED, RAPTOR_ATOM_ENTRY, @@ -151,7 +153,7 @@ typedef enum { RAPTOR_RSS_FIELD_AUTHOR, /* item 2.0 */ RAPTOR_RSS_FIELD_GUID, /* item 2.0 */ RAPTOR_RSS_FIELD_ENCLOSURE, /* item 0.92, 2.0 */ - RAPTOR_RSS_RDF_ENCLOSURE, /* In RDF output, not an RSS field */ + RAPTOR_RSS_RDF_ENCLOSURE_CLASS, /* In RDF output, not an RSS field */ RAPTOR_RSS_RDF_ENCLOSURE_URL, /* In RDF output, not an RSS field */ RAPTOR_RSS_RDF_ENCLOSURE_LENGTH, /* In RDF output, not an RSS field */ RAPTOR_RSS_RDF_ENCLOSURE_TYPE, /* In RDF output, not an RSS field */ @@ -193,6 +195,13 @@ typedef enum { RAPTOR_RSS_FIELD_ATOM_SUMMARY, /* atom 1.0 summary */ RAPTOR_RSS_FIELD_ATOM_URI, /* atom 1.0 uri */ + RAPTOR_RSS_RDF_ATOM_AUTHOR_CLASS, /* In RDF output, not atom field */ + RAPTOR_RSS_RDF_ATOM_CATEGORY_CLASS, /* In RDF output, not atom field */ + + RAPTOR_RSS_FIELD_ATOM_LABEL, /* atom 1.0 attribute label */ + RAPTOR_RSS_FIELD_ATOM_SCHEME, /* atom 1.0 attribute scheme */ + RAPTOR_RSS_FIELD_ATOM_TERM, /* atom 1.0 attribute term */ + RAPTOR_RSS_FIELD_DC_TITLE, /* DC title */ RAPTOR_RSS_FIELD_DC_CONTRIBUTOR, /* DC contributor */ RAPTOR_RSS_FIELD_DC_CREATOR, /* DC creator */ @@ -300,6 +309,8 @@ typedef struct { int flags; /* RDF class URI */ raptor_rss_fields_type cls; + /* RDF predicate URI to connect to the instance of this item */ + raptor_rss_fields_type predicate; } raptor_rss_item_info; @@ -310,7 +321,7 @@ extern const raptor_rss_item_info raptor_rss_items_info[RAPTOR_RSS_COMMON_SIZE+1 typedef struct { /* metadata block type it applies to */ raptor_rss_type type; - /* XML attribute */ + /* XML attribute (or NULL for field to use to store CDATA) */ const char *attribute; /* How that attribute should be interpreted: url or string */ int attribute_type; |