aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-03 22:23:28 +0200
committerDavid Robillard <d@drobilla.net>2019-12-19 20:55:23 -0500
commitfeb8de751a7f23cbd96ad4760dea68344ea3d0d7 (patch)
tree84788fcb93ca513b01160c35114c4b424062b6d9 /serd
parentcd30f11644697d7b1a38c171007c57379bec79df (diff)
downloadserd-feb8de751a7f23cbd96ad4760dea68344ea3d0d7.tar.gz
serd-feb8de751a7f23cbd96ad4760dea68344ea3d0d7.tar.bz2
serd-feb8de751a7f23cbd96ad4760dea68344ea3d0d7.zip
Add cursor to statement
This allows the file and position of statements to be used in sinks, for example for more helpful error reporting outside the parser.
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 0a05c395..9b34dcbb 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -1307,6 +1307,13 @@ const SerdNode*
serd_statement_get_graph(const SerdStatement* statement);
/**
+ Return the source location where `statement` originated, or NULL.
+*/
+SERD_API
+const SerdCursor*
+serd_statement_get_cursor(const SerdStatement* statement);
+
+/**
@}
@name Cursor
@{