summaryrefslogtreecommitdiffstats
path: root/sord
diff options
context:
space:
mode:
Diffstat (limited to 'sord')
-rw-r--r--sord/sord.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sord/sord.h b/sord/sord.h
index 8a800ff..8f1ef38 100644
--- a/sord/sord.h
+++ b/sord/sord.h
@@ -157,6 +157,18 @@ void
sord_world_free(SordWorld* world);
/**
+ Set a function to be called when errors occur.
+
+ The @p error_sink will be called with @p handle as its first argument. If
+ no error function is set, errors are printed to stderr.
+*/
+SORD_API
+void
+sord_world_set_error_sink(SordWorld* world,
+ SerdErrorSink error_sink,
+ void* handle);
+
+/**
@}
@name Node
@{