aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-03 22:23:28 +0200
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commitbcd9ce4800688e3b53cc198d26e2e44627a2ec7a (patch)
tree3ab029af12597a24d816c9e6900ef86eaa5de8d5 /serd/serd.h
parent6a91bfca72fc2cfd7ba1002174475d71e35b2969 (diff)
downloadserd-bcd9ce4800688e3b53cc198d26e2e44627a2ec7a.tar.gz
serd-bcd9ce4800688e3b53cc198d26e2e44627a2ec7a.tar.bz2
serd-bcd9ce4800688e3b53cc198d26e2e44627a2ec7a.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/serd.h')
-rw-r--r--serd/serd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 1cc68f82..2ca024f3 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -1305,6 +1305,13 @@ const SerdNode*
serd_statement_graph(const SerdStatement* statement);
/**
+ Return the source location where `statement` originated, or NULL.
+*/
+SERD_API
+const SerdCursor*
+serd_statement_cursor(const SerdStatement* statement);
+
+/**
@}
@name Cursor
@{