summaryrefslogtreecommitdiff
path: root/src/raptor_rss_common.c
diff options
context:
space:
mode:
authorLauri Aalto <laalto@iki.fi>2008-10-02 14:29:26 +0000
committerLauri Aalto <laalto@iki.fi>2008-10-02 14:29:26 +0000
commitb647d6f4fdcc43aae83a6389bee2c003b4e3be92 (patch)
tree9a2e3665062ca37ba84fa3d5f87b9a6b6538bf28 /src/raptor_rss_common.c
parent6d0007e873ab9572fb4561c609d9dc359636efff (diff)
downloadraptor-b647d6f4fdcc43aae83a6389bee2c003b4e3be92.tar.gz
Refactored raptor_statement internals to use v2 raptor_world APIs.
(raptor_statement_v2): New API struct for wrapping raptor_statement with raptor_world without breaking source/binary compatibility. (raptor_print_statement_v2,raptor_print_statement_as_ntriples_v2,raptor_statement_compare_v2): New API function variants that work on raptor_statement_v2 objects. (raptor_statement_part_as_counted_string_v2,raptor_statement_part_as_string_v2): New API function variants that take in raptor_world object. (raptor_statement_copy_v2,raptor_statement_copy_v2_from_v1,raptor_free_statement_v2): New internal raptor_statement_v2 lifecycle functions. (raptor_print_abbrev_po): Use raptor_statement_part_as_string_v2(). (raptor_new_rss_item,raptor_rss10_serialize_init,raptor_rss10_move_statements,raptor_rss10_move_anonymous_statements,raptor_rss10_store_statement,raptor_rss10_serialize_statement,raptor_rss10_build_items,raptor_rss10_emit_rdfxml_item_triples,raptor_rss10_serialize_end): triples sequences are now sequences of raptor_statement_v2. (raptor_json_serialize_start,raptor_json_serialize_statement): context->avltree is now a tree of raptor_statement_v2. (raptor_statement_copy_common): (Pulled from raptor_statement_copy.) Now also checks for OOM.
Diffstat (limited to 'src/raptor_rss_common.c')
-rw-r--r--src/raptor_rss_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raptor_rss_common.c b/src/raptor_rss_common.c
index 38455b51..a79aa1f6 100644
--- a/src/raptor_rss_common.c
+++ b/src/raptor_rss_common.c
@@ -347,7 +347,7 @@ raptor_new_rss_item(raptor_world* world)
item->world=world;
item->identifier.world=world;
- item->triples=raptor_new_sequence((raptor_sequence_free_handler*)raptor_free_statement, (raptor_sequence_print_handler*)raptor_print_statement);
+ item->triples=raptor_new_sequence((raptor_sequence_free_handler*)raptor_free_statement_v2, (raptor_sequence_print_handler*)raptor_print_statement_v2);
if(!item->triples) {
RAPTOR_FREE(raptor_rss_item, item);
return NULL;