diff options
author | David Robillard <d@drobilla.net> | 2016-07-31 03:22:58 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-31 03:24:29 -0400 |
commit | b0339e5350f4b9f41f534a7f17e4bec4947fcd5f (patch) | |
tree | a0745c0dba3078c751e2d985342194619a23525e /sratom/sratom.h | |
parent | 34547e1405b12b0f3ec8ce82e69e05ac11495ce8 (diff) | |
download | sratom-b0339e5350f4b9f41f534a7f17e4bec4947fcd5f.tar.gz sratom-b0339e5350f4b9f41f534a7f17e4bec4947fcd5f.tar.bz2 sratom-b0339e5350f4b9f41f534a7f17e4bec4947fcd5f.zip |
Add sratom_set_env() for setting prefixes
Diffstat (limited to 'sratom/sratom.h')
-rw-r--r-- | sratom/sratom.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sratom/sratom.h b/sratom/sratom.h index a86f67e..3e76954 100644 --- a/sratom/sratom.h +++ b/sratom/sratom.h @@ -1,5 +1,5 @@ /* - Copyright 2012 David Robillard <http://drobilla.net> + Copyright 2012-2016 David Robillard <http://drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -101,6 +101,17 @@ void sratom_free(Sratom* sratom); /** + Set the environment for reading or writing Turtle. + + This can be used to set namespace prefixes and a base URI for + sratom_to_turtle() and sratom_from_turtle(). +*/ +SRATOM_API +void +sratom_set_env(Sratom* sratom, + SerdEnv* env); + +/** Set the sink(s) where sratom will write its output. This must be called before calling sratom_write(). |