diff options
author | David Robillard <d@drobilla.net> | 2011-01-22 17:15:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-22 17:15:48 +0000 |
commit | cb8a2efb80eb28df7dbf9cfec4c3c0ffaf8e888d (patch) | |
tree | d1c3a4d490993a0f803c3e7d6fd2c082c801b53e /serd | |
parent | ab6e7da833ada0367f06d0d794984c1b9848f70c (diff) | |
download | serd-cb8a2efb80eb28df7dbf9cfec4c3c0ffaf8e888d.tar.gz serd-cb8a2efb80eb28df7dbf9cfec4c3c0ffaf8e888d.tar.bz2 serd-cb8a2efb80eb28df7dbf9cfec4c3c0ffaf8e888d.zip |
Cleanup.
git-svn-id: http://svn.drobilla.net/serd/trunk@34 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'serd')
-rw-r--r-- | serd/serd.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/serd/serd.h b/serd/serd.h index d350cf4c..03ada7a8 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -196,35 +196,35 @@ serd_namespaces_expand(const SerdNamespaces ns, * @{ */ -/** Handler for base URI changes. */ -typedef bool (*SerdBaseHandler)(void* handle, - const SerdString* uri); - -/** Handler for namespace definitions. */ -typedef bool (*SerdPrefixHandler)(void* handle, - const SerdString* name, - const SerdString* uri); - -/** Handler for statements. */ -typedef bool (*SerdStatementHandler)(void* handle, - const SerdString* graph, - const SerdString* subject, - SerdNodeType subject_type, - const SerdString* predicate, - SerdNodeType predicate_type, - const SerdString* object, - SerdNodeType object_type, - const SerdString* object_lang, - const SerdString* object_datatype); +/** Sink for base URI changes. */ +typedef bool (*SerdBaseSink)(void* handle, + const SerdString* uri); + +/** Sink for namespace definitions. */ +typedef bool (*SerdPrefixSink)(void* handle, + const SerdString* name, + const SerdString* uri); + +/** Sink for statements. */ +typedef bool (*SerdStatementSink)(void* handle, + const SerdString* graph, + const SerdString* subject, + SerdNodeType subject_type, + const SerdString* predicate, + SerdNodeType predicate_type, + const SerdString* object, + SerdNodeType object_type, + const SerdString* object_lang, + const SerdString* object_datatype); /** Create a new RDF reader. */ SERD_API SerdReader -serd_reader_new(SerdSyntax syntax, - void* handle, - SerdBaseHandler base_handler, - SerdPrefixHandler prefix_handler, - SerdStatementHandler statement_handler); +serd_reader_new(SerdSyntax syntax, + void* handle, + SerdBaseSink base_sink, + SerdPrefixSink prefix_sink, + SerdStatementSink statement_sink); /** Read @a file. */ SERD_API |