aboutsummaryrefslogtreecommitdiffstats
path: root/src/node_syntax.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-13 20:00:25 +0100
committerDavid Robillard <d@drobilla.net>2021-03-08 23:23:06 -0500
commit468f7dc4294905d19f55c58c47ba91cd23bf357b (patch)
tree3531d4dbc53e3454534ea607dfa4f44d0f085f5d /src/node_syntax.c
parent229443778ffc6b26a13322983b81f4f1912427af (diff)
downloadserd-468f7dc4294905d19f55c58c47ba91cd23bf357b.tar.gz
serd-468f7dc4294905d19f55c58c47ba91cd23bf357b.tar.bz2
serd-468f7dc4294905d19f55c58c47ba91cd23bf357b.zip
WIP: Add extensible logging API
Diffstat (limited to 'src/node_syntax.c')
-rw-r--r--src/node_syntax.c12
1 files changed, 2 insertions, 10 deletions
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
@@ -23,14 +23,6 @@
#include <string.h>
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)
{
if (event->type == SERD_STATEMENT) {
@@ -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;