aboutsummaryrefslogtreecommitdiffstats
path: root/src/statement.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-03 22:23:28 +0200
committerDavid Robillard <d@drobilla.net>2019-04-13 19:15:32 +0200
commit2402d960c54981abb34a79982ecd61a00f798901 (patch)
treed3d3c6652318aa62ed2cdc49da3b430616183100 /src/statement.c
parentd77ae556562490d6ce70fed690eca69a18ee4c46 (diff)
downloadserd-2402d960c54981abb34a79982ecd61a00f798901.tar.gz
serd-2402d960c54981abb34a79982ecd61a00f798901.tar.bz2
serd-2402d960c54981abb34a79982ecd61a00f798901.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 'src/statement.c')
-rw-r--r--src/statement.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/statement.c b/src/statement.c
index 5e2802eb..24440a38 100644
--- a/src/statement.c
+++ b/src/statement.c
@@ -45,3 +45,9 @@ serd_statement_get_graph(const SerdStatement* statement)
{
return statement->nodes[SERD_GRAPH];
}
+
+const SerdCursor*
+serd_statement_get_cursor(const SerdStatement* statement)
+{
+ return statement->cursor;
+}