summaryrefslogtreecommitdiffstats
path: root/sord/sord.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-05 17:41:03 +0000
committerDavid Robillard <d@drobilla.net>2012-07-05 17:41:03 +0000
commit72f3d5b2be13c68c123294f0c379e1e83132411c (patch)
tree070b88f3a2d081cb7a7320441e74d1ac55485cb2 /sord/sord.h
parent394dce8aeeddf9dbe8292a4f68fc24d3b5ed4cd6 (diff)
downloadsord-72f3d5b2be13c68c123294f0c379e1e83132411c.tar.gz
sord-72f3d5b2be13c68c123294f0c379e1e83132411c.tar.bz2
sord-72f3d5b2be13c68c123294f0c379e1e83132411c.zip
Add error callback to world for custom error reporting.
git-svn-id: http://svn.drobilla.net/sord/trunk@226 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'sord/sord.h')
-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
@{