From bcd9ce4800688e3b53cc198d26e2e44627a2ec7a 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') diff --git a/serd/serd.h b/serd/serd.h index 1cc68f82..2ca024f3 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -1304,6 +1304,13 @@ SERD_API 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 -- cgit v1.2.1