diff options
author | David Robillard <d@drobilla.net> | 2012-04-11 23:58:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-11 23:58:42 +0000 |
commit | 9b3c2ddf33b0f9461643d7b7fa39e5e8668e77a2 (patch) | |
tree | 4796fcc29838a6fcfe04bab4179117981e602d7d /src | |
parent | b716b49fd9e6943f8f6555931bb5997423de3fe5 (diff) | |
download | sratom-9b3c2ddf33b0f9461643d7b7fa39e5e8668e77a2.tar.gz sratom-9b3c2ddf33b0f9461643d7b7fa39e5e8668e77a2.tar.bz2 sratom-9b3c2ddf33b0f9461643d7b7fa39e5e8668e77a2.zip |
Write port values in presets as pretty numbers.
git-svn-id: http://svn.drobilla.net/lad/trunk/sratom@4168 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/sratom.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/sratom.c b/src/sratom.c index 7896e1b..9c4ace0 100644 --- a/src/sratom.c +++ b/src/sratom.c @@ -96,8 +96,7 @@ sratom_set_sink(Sratom* sratom, const char* base_uri, SerdStatementSink write_statement, SerdEndSink end_anon, - void* handle, - bool pretty_numbers) + void* handle) { if (base_uri) { serd_node_free(&sratom->base_uri); @@ -107,7 +106,14 @@ sratom_set_sink(Sratom* sratom, sratom->write_statement = write_statement; sratom->end_anon = end_anon; sratom->handle = handle; - sratom->pretty_numbers = pretty_numbers; +} + +SRATOM_API +void +sratom_set_pretty_numbers(Sratom* sratom, + bool pretty_numbers) +{ + sratom->pretty_numbers = pretty_numbers; } static void @@ -441,8 +447,7 @@ sratom_to_turtle(Sratom* sratom, sratom_set_sink(sratom, base_uri, (SerdStatementSink)serd_writer_write_statement, (SerdEndSink)serd_writer_end_anon, - writer, - false); + writer); sratom_write(sratom, unmap, SERD_EMPTY_S, subject, predicate, type, size, body); serd_writer_finish(writer); |