summaryrefslogtreecommitdiff
path: root/src/raptor_serialize_dot.c
diff options
context:
space:
mode:
authorLauri Aalto <laalto@iki.fi>2008-01-11 09:30:56 +0000
committerLauri Aalto <laalto@iki.fi>2008-01-11 09:30:56 +0000
commit883d6991a2d29e6ceda24bb125443eb857d4d217 (patch)
tree06148321965c821b20c0d7d355714ec60c657176 /src/raptor_serialize_dot.c
parent5d4afbf0d4d9aa5e99116b8ccc6de3310ff4e9f9 (diff)
downloadraptor-883d6991a2d29e6ceda24bb125443eb857d4d217.tar.gz
(raptor_*_serializer_register_factory, raptor_*_parser_register_factory) Return error codes from parser and serializer factory registration functions.
(raptor_serializer_register_factory, raptor_parser_register_factory) Check factory function return code. (raptor_parser_factory_add_alias, raptor_parser_factory_add_mime_type, raptor_parser_factory_add_uri) Added error code returns. Bubble up OOM errors to caller.
Diffstat (limited to 'src/raptor_serialize_dot.c')
-rw-r--r--src/raptor_serialize_dot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/raptor_serialize_dot.c b/src/raptor_serialize_dot.c
index ae6643de..e91c8ad2 100644
--- a/src/raptor_serialize_dot.c
+++ b/src/raptor_serialize_dot.c
@@ -798,7 +798,7 @@ raptor_dot_serializer_statement(raptor_serializer* serializer,
}
-static void
+static int
raptor_dot_serializer_register_factory(raptor_serializer_factory *factory)
{
factory->context_length = sizeof(raptor_dot_context);
@@ -812,6 +812,8 @@ raptor_dot_serializer_register_factory(raptor_serializer_factory *factory)
factory->serialize_end = raptor_dot_serializer_end;
factory->finish_factory = NULL;
factory->terminate = raptor_dot_serializer_terminate;
+
+ return 0;
}