diff options
author | David Robillard <d@drobilla.net> | 2021-03-01 13:24:02 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-07 15:32:24 -0500 |
commit | 58890c798fbd87a2080c2fa8cc206a2631c3e558 (patch) | |
tree | acc1eae84774a9b46cb7c021f939f7229c1a3383 /src/writer.c | |
parent | ee254d3e92900986526078bb9cbef1642a51dac1 (diff) | |
download | serd-58890c798fbd87a2080c2fa8cc206a2631c3e558.tar.gz serd-58890c798fbd87a2080c2fa8cc206a2631c3e558.tar.bz2 serd-58890c798fbd87a2080c2fa8cc206a2631c3e558.zip |
Use consistent naming for function types
Diffstat (limited to 'src/writer.c')
-rw-r--r-- | src/writer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/writer.c b/src/writer.c index c70c5f1d..e23058f0 100644 --- a/src/writer.c +++ b/src/writer.c @@ -99,7 +99,7 @@ struct SerdWriterImpl { SerdURIView root_uri; SerdStack anon_stack; SerdByteSink byte_sink; - SerdErrorSink error_sink; + SerdErrorFunc error_func; void* error_handle; WriteContext context; SerdNode* list_subj; @@ -143,7 +143,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); } @@ -981,10 +981,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; } |