diff options
author | David Robillard <d@drobilla.net> | 2019-02-24 09:02:00 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-19 20:57:59 -0500 |
commit | bc8666f26b616523990f20f165705dff73c26d66 (patch) | |
tree | d4a1cfa6a8c60f3fc31b6d4407749faf7c90c107 /src | |
parent | f65a77adf806025f84dce23880a518ca1bd70f61 (diff) | |
download | serd-bc8666f26b616523990f20f165705dff73c26d66.tar.gz serd-bc8666f26b616523990f20f165705dff73c26d66.tar.bz2 serd-bc8666f26b616523990f20f165705dff73c26d66.zip |
Use consistent naming for function types
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
@@ -46,28 +46,28 @@ serd_sink_get_env(const 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; @@ -25,10 +25,10 @@ struct SerdSinkImpl { void* handle; SerdEnv* env; - 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 fe77710a..19588c69 100644 --- a/src/writer.c +++ b/src/writer.c @@ -918,10 +918,10 @@ serd_writer_new(SerdWorld* world, writer->iface.handle = writer; writer->iface.env = env; - 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; } |