diff options
author | Dave Beckett <dave@dajobe.org> | 2009-02-20 20:48:05 +0000 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2009-02-20 20:48:05 +0000 |
commit | ac4617f01ad043ce103612ef90cabc16152f09ff (patch) | |
tree | e5e39c604e68ba8992575efcde1ef6595afc4490 /src/raptor_rss_common.c | |
parent | 03419fff965cd01c8446ac58b635b0ed29e06a92 (diff) | |
download | raptor-ac4617f01ad043ce103612ef90cabc16152f09ff.tar.gz |
Remove old enclosure core and switch to data-driven raptor_rss_block
metadata code. Update copyrights for 2009.
typedef raptor_rss_block_fields_info renamed from
raptor_rss_block_info and add docs. Renamed field 'attribute' from
field_name, attribute_type from field_type. Added rdf predicate
info 'field'.
raptor_rss_block_fields_info adds predicate info.
(raptor_rss_start_element_handler): Read from raptor_rss_block_fields_info.
(raptor_rss_insert_block_identifiers): Renamed from
raptor_rss_insert_enclosure_identifiers.
(raptor_rss_insert_identifiers): Call above with new name.
(raptor_rss_emit_block): Use more data tables to emit block.
Diffstat (limited to 'src/raptor_rss_common.c')
-rw-r--r-- | src/raptor_rss_common.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/raptor_rss_common.c b/src/raptor_rss_common.c index cdc71b18..736c5147 100644 --- a/src/raptor_rss_common.c +++ b/src/raptor_rss_common.c @@ -1,13 +1,10 @@ /* -*- Mode: c; c-basic-offset: 2 -*- * - * raptor_rss_common.c - Raptor RSS common code + * raptor_rss_common.c - Raptor Feeds (RSS and Atom) common code * - * Copyright (C) 2003-2008, David Beckett http://www.dajobe.org/ + * Copyright (C) 2003-2009, David Beckett http://www.dajobe.org/ * Copyright (C) 2003-2005, University of Bristol, UK http://www.bristol.ac.uk/ * - * Contributions: - * Copyright (C) 2004-2005, Suzan Foster <su@islief.nl> - * * This package is Free Software and part of Redland http://librdf.org/ * * It is licensed under the following three licenses as alternatives: @@ -200,7 +197,7 @@ const raptor_field_pair raptor_atom_to_rss[]={ }; -const raptor_rss_block_info raptor_rss_blocks_info[RAPTOR_RSS_BLOCKS_SIZE+1] = { +const raptor_rss_block_field_info raptor_rss_block_fields_info[RAPTOR_RSS_BLOCKS_SIZE+1] = { /* RSS 2 <enclosure> - optional element inside <item> attributes: @@ -209,9 +206,9 @@ const raptor_rss_block_info raptor_rss_blocks_info[RAPTOR_RSS_BLOCKS_SIZE+1] = { type (required): what enclosure type is as a standard MIME type. string content: empty */ - { RAPTOR_RSS_ENCLOSURE, "url", RSS_BLOCK_FIELD_TYPE_URL, 0 }, - { RAPTOR_RSS_ENCLOSURE, "length", RSS_BLOCK_FIELD_TYPE_STRING, 0 }, - { RAPTOR_RSS_ENCLOSURE, "type", RSS_BLOCK_FIELD_TYPE_STRING, 1 }, + { RAPTOR_RSS_ENCLOSURE, "url", RSS_BLOCK_FIELD_TYPE_URL, 0, RAPTOR_RSS_RDF_ENCLOSURE_URL }, + { RAPTOR_RSS_ENCLOSURE, "length", RSS_BLOCK_FIELD_TYPE_STRING, 0, RAPTOR_RSS_RDF_ENCLOSURE_LENGTH }, + { RAPTOR_RSS_ENCLOSURE, "type", RSS_BLOCK_FIELD_TYPE_STRING, 1, RAPTOR_RSS_RDF_ENCLOSURE_TYPE }, /* RSS 2 <category> - optional element inside <item> |