From 528dd84b43180c859fe581ed6664e8d6b9e5a961 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 24 May 2011 18:53:55 +0000 Subject: Cleaner serialisation API. git-svn-id: http://svn.drobilla.net/sord/trunk@130 3d64ff67-21c5-427c-a301-fe4f08042e5a --- sord/sord.h | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) (limited to 'sord/sord.h') diff --git a/sord/sord.h b/sord/sord.h index 5796a6a..1601876 100644 --- a/sord/sord.h +++ b/sord/sord.h @@ -445,38 +445,14 @@ sord_new_reader(SordModel* model, SerdSyntax syntax, SordNode* graph); -/** - Write a model to a file. -*/ -SORD_API -bool -sord_write_file(SordModel* model, - SerdEnv* env, - SerdSyntax syntax, - const uint8_t* uri, - SordNode* graph, - const uint8_t* blank_prefix); - /** Write a model to a writer. */ SORD_API bool -sord_write_writer(SordModel* model, - SerdWriter* writer, - SordNode* graph); - -/** - Write a model to a string. - - Returned string is newly allocated and must be freed with free(). -*/ -SORD_API -uint8_t* -sord_write_string(SordModel* model, - SerdEnv* env, - SerdSyntax syntax, - const uint8_t* base_uri); +sord_write(SordModel* model, + SerdWriter* writer, + SordNode* graph); /** @} -- cgit v1.2.1