diff options
author | David Robillard <d@drobilla.net> | 2018-06-03 22:23:28 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-11-25 22:12:47 +0100 |
commit | afab9f8037f9281bcef6ee4201061aa234eeadac (patch) | |
tree | 2a19a8bbf85a02b3652c43c50a27f316143ce3ab /serd | |
parent | 47e35393464abc9d92f92974ecef173c7e1b372f (diff) | |
download | serd-afab9f8037f9281bcef6ee4201061aa234eeadac.tar.gz serd-afab9f8037f9281bcef6ee4201061aa234eeadac.tar.bz2 serd-afab9f8037f9281bcef6ee4201061aa234eeadac.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 'serd')
-rw-r--r-- | serd/serd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h index 4fa5a70d..d379ccee 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -1269,6 +1269,13 @@ 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 @{ |