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-12-19 20:55:23 -0500
commitfeb8de751a7f23cbd96ad4760dea68344ea3d0d7 (patch)
tree84788fcb93ca513b01160c35114c4b424062b6d9 /src/statement.c
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 '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;
+}