summaryrefslogtreecommitdiffstats
path: root/sratom
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-11 23:58:42 +0000
committerDavid Robillard <d@drobilla.net>2012-04-11 23:58:42 +0000
commit9b3c2ddf33b0f9461643d7b7fa39e5e8668e77a2 (patch)
tree4796fcc29838a6fcfe04bab4179117981e602d7d /sratom
parentb716b49fd9e6943f8f6555931bb5997423de3fe5 (diff)
downloadsratom-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 'sratom')
-rw-r--r--sratom/sratom.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/sratom/sratom.h b/sratom/sratom.h
index bd4a572..046210a 100644
--- a/sratom/sratom.h
+++ b/sratom/sratom.h
@@ -78,10 +78,7 @@ sratom_free(Sratom* sratom);
/**
Set the sink(s) where sratom will write its output.
- This must be called before calling sratom_write(). If @p pretty_numbers is
- true, numbers will be written as pretty Turtle literals, rather than string
- literals with precise types. The cost of this is the types might get
- fudged on a round-trip to RDF and back.
+ This must be called before calling sratom_write().
*/
SRATOM_API
void
@@ -89,8 +86,19 @@ sratom_set_sink(Sratom* sratom,
const char* base_uri,
SerdStatementSink sink,
SerdEndSink end_sink,
- void* handle,
- bool pretty_numbers);
+ void* handle);
+
+/**
+ Write pretty numeric literals.
+
+ If @p pretty_numbers is true, numbers will be written as pretty Turtle
+ literals, rather than string literals with precise types. The cost of this
+ is that the types might get fudged on a round-trip to RDF and back.
+*/
+SRATOM_API
+void
+sratom_set_pretty_numbers(Sratom* sratom,
+ bool pretty_numbers);
/**
Write an Atom to RDF.