diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sink.c | 8 | ||||
-rw-r--r-- | src/sink.h | 8 | ||||
-rw-r--r-- | src/writer.c | 8 |
3 files changed, 12 insertions, 12 deletions
@@ -38,28 +38,28 @@ serd_sink_free(SerdSink* sink) } SerdStatus -serd_sink_set_base_func(SerdSink* sink, SerdBaseSink base_func) +serd_sink_set_base_func(SerdSink* sink, SerdBaseFunc base_func) { sink->base = base_func; return SERD_SUCCESS; } SerdStatus -serd_sink_set_prefix_func(SerdSink* sink, SerdPrefixSink prefix_func) +serd_sink_set_prefix_func(SerdSink* sink, SerdPrefixFunc prefix_func) { sink->prefix = prefix_func; return SERD_SUCCESS; } SerdStatus -serd_sink_set_statement_func(SerdSink* sink, SerdStatementSink statement_func) +serd_sink_set_statement_func(SerdSink* sink, SerdStatementFunc statement_func) { sink->statement = statement_func; return SERD_SUCCESS; } SerdStatus -serd_sink_set_end_func(SerdSink* sink, SerdEndSink end_func) +serd_sink_set_end_func(SerdSink* sink, SerdEndFunc end_func) { sink->end = end_func; return SERD_SUCCESS; @@ -24,10 +24,10 @@ */ struct SerdSinkImpl { void* handle; - SerdBaseSink base; - SerdPrefixSink prefix; - SerdStatementSink statement; - SerdEndSink end; + SerdBaseFunc base; + SerdPrefixFunc prefix; + SerdStatementFunc statement; + SerdEndFunc end; }; #endif // SERD_SINK_H diff --git a/src/writer.c b/src/writer.c index 891f2413..6b7e39b5 100644 --- a/src/writer.c +++ b/src/writer.c @@ -954,10 +954,10 @@ serd_writer_new(SerdWorld* world, writer->empty = true; writer->iface.handle = writer; - writer->iface.base = (SerdBaseSink)serd_writer_set_base_uri; - writer->iface.prefix = (SerdPrefixSink)serd_writer_set_prefix; - writer->iface.statement = (SerdStatementSink)serd_writer_write_statement; - writer->iface.end = (SerdEndSink)serd_writer_end_anon; + writer->iface.base = (SerdBaseFunc)serd_writer_set_base_uri; + writer->iface.prefix = (SerdPrefixFunc)serd_writer_set_prefix; + writer->iface.statement = (SerdStatementFunc)serd_writer_write_statement; + writer->iface.end = (SerdEndFunc)serd_writer_end_anon; return writer; } |