diff options
author | David Robillard <d@drobilla.net> | 2011-01-21 01:48:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-21 01:48:53 +0000 |
commit | 235eef1849b96bad3697f44c022f7a4e986299ff (patch) | |
tree | b181c227bdc2c12e18a0df9a10bd0e36a9ded96a /serd/serd.h | |
parent | 8e86488fb0b644f95925d97dc8f25774e60da4c5 (diff) | |
download | serd-235eef1849b96bad3697f44c022f7a4e986299ff.tar.gz serd-235eef1849b96bad3697f44c022f7a4e986299ff.tar.bz2 serd-235eef1849b96bad3697f44c022f7a4e986299ff.zip |
Make writer write to any sink passed in by the user.
git-svn-id: http://svn.drobilla.net/serd/trunk@20 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'serd/serd.h')
-rw-r--r-- | serd/serd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/serd/serd.h b/serd/serd.h index 822b4b10..8efaab20 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -119,7 +119,7 @@ bool serd_uri_write(const SerdURI* uri, FILE* file); /** Sink function for raw string output. */ -typedef size_t (*SerdSink)(const uint8_t* buf, size_t len, void* stream); +typedef size_t (*SerdSink)(const void* buf, size_t len, void* stream); /** Serialise @a uri with a series of calls to @a sink. */ SERD_API @@ -249,8 +249,9 @@ SERD_API SerdWriter serd_writer_new(SerdSyntax syntax, SerdNamespaces ns, - FILE* file, - const SerdURI* base_uri); + const SerdURI* base_uri, + SerdSink sink, + void* stream); /** Free @a writer. */ SERD_API |