From 5329ada96fd9d746aa1302eb353efccf9ba4a1b3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Jun 2018 22:23:28 +0200 Subject: 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. --- serd/serd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'serd/serd.h') diff --git a/serd/serd.h b/serd/serd.h index 2e45225b..29422ef1 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -1300,6 +1300,13 @@ SERD_API 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 -- cgit v1.2.1