diff options
author | David Robillard <d@drobilla.net> | 2010-12-17 19:41:56 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-17 19:41:56 +0000 |
commit | 2ba7b61143db7939201afa35328616edb2dc03b5 (patch) | |
tree | 414132adb58c20151edbe360a7080f9dfbecedae /src/serialisation | |
parent | 2458ca4a1c81524d964749a69d60dbc641f84ca7 (diff) | |
download | ingen-2ba7b61143db7939201afa35328616edb2dc03b5.tar.gz ingen-2ba7b61143db7939201afa35328616edb2dc03b5.tar.bz2 ingen-2ba7b61143db7939201afa35328616edb2dc03b5.zip |
Take RDF serialisation language as a parameter (rather than hardcoded "turtle").
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2753 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation')
-rw-r--r-- | src/serialisation/Serialiser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index a4ab5fa7..bc6b317a 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -226,9 +226,9 @@ Serialiser::finish() { string ret = ""; if (_mode == TO_FILE) { - _model->serialise_to_file(_base_uri); + _model->serialise_to_file(_base_uri, "turtle"); } else { - char* c_str = _model->serialise_to_string(); + char* c_str = _model->serialise_to_string("turtle"); if (c_str != NULL) { ret = c_str; free(c_str); |