From feb8de751a7f23cbd96ad4760dea68344ea3d0d7 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 0a05c395..9b34dcbb 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -1306,6 +1306,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