From 468f7dc4294905d19f55c58c47ba91cd23bf357b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Jan 2021 20:00:25 +0100 Subject: WIP: Add extensible logging API --- src/node_syntax.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/node_syntax.c') diff --git a/src/node_syntax.c b/src/node_syntax.c index fc442f33..f14300e6 100644 --- a/src/node_syntax.c +++ b/src/node_syntax.c @@ -22,14 +22,6 @@ #include #include -static SerdStatus -quiet_error_func(void* const handle, const SerdError* const e) -{ - (void)handle; - (void)e; - return SERD_SUCCESS; -} - static SerdStatus on_node_string_event(void* const handle, const SerdEvent* const event) { @@ -67,7 +59,7 @@ serd_node_from_syntax(const char* const str, const SerdSyntax syntax) sink, 1024 + doc_len); - serd_world_set_error_func(world, quiet_error_func, NULL); + serd_world_set_log_func(world, serd_quiet_error_func, NULL); serd_reader_start(reader, source); serd_reader_read_document(reader); serd_reader_finish(reader); @@ -90,7 +82,7 @@ serd_node_to_syntax(const SerdNode* const node, const SerdSyntax syntax) SerdByteSink* const out = serd_byte_sink_new_buffer(&buffer); SerdWriter* const writer = serd_writer_new(world, syntax, 0, env, out); - serd_world_set_error_func(world, quiet_error_func, NULL); + serd_world_set_log_func(world, serd_quiet_error_func, NULL); SerdStatus st = SERD_SUCCESS; char* result = NULL; -- cgit v1.2.1