aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-03-01 13:24:02 -0500
committerDavid Robillard <d@drobilla.net>2022-01-13 15:33:54 -0500
commitda8e12fcbccf4558d4d524d7a6f659ea2ffc0ea2 (patch)
tree18ccddb7bc2ad526bcab4195220d23ac31a6f300 /src/writer.c
parent6cdd2b1e6f4ac37682ee20dca32441f88c92bcfa (diff)
downloadserd-da8e12fcbccf4558d4d524d7a6f659ea2ffc0ea2.tar.gz
serd-da8e12fcbccf4558d4d524d7a6f659ea2ffc0ea2.tar.bz2
serd-da8e12fcbccf4558d4d524d7a6f659ea2ffc0ea2.zip
Rename function types for consistency
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/writer.c b/src/writer.c
index 82447826..9e345470 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -100,7 +100,7 @@ struct SerdWriterImpl {
SerdURIView base_uri;
SerdStack anon_stack;
SerdByteSink byte_sink;
- SerdErrorSink error_sink;
+ SerdErrorFunc error_func;
void* error_handle;
WriteContext context;
SerdNode list_subj;
@@ -146,7 +146,7 @@ w_err(SerdWriter* writer, SerdStatus st, const char* fmt, ...)
va_list args;
va_start(args, fmt);
const SerdError e = {st, "", 0, 0, fmt, &args};
- serd_error(writer->error_sink, writer->error_handle, &e);
+ serd_error(writer->error_func, writer->error_handle, &e);
va_end(args);
}
@@ -963,10 +963,10 @@ serd_writer_new(SerdSyntax syntax,
void
serd_writer_set_error_sink(SerdWriter* writer,
- SerdErrorSink error_sink,
+ SerdErrorFunc error_func,
void* error_handle)
{
- writer->error_sink = error_sink;
+ writer->error_func = error_func;
writer->error_handle = error_handle;
}