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>2018-12-31 11:37:48 -0500
commitb6197eb59799c2933bd776ea22760fea5e97b4bd (patch)
tree7d924d86285ca33d6d7cf241501811f3616429aa /serd
parent5246440bc489b9b8168d0e26700cf5f343895169 (diff)
downloadserd-b6197eb59799c2933bd776ea22760fea5e97b4bd.tar.gz
serd-b6197eb59799c2933bd776ea22760fea5e97b4bd.tar.bz2
serd-b6197eb59799c2933bd776ea22760fea5e97b4bd.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 6f8dece4..18a95b20 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -1266,6 +1266,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
@{