summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-23 21:31:46 +0200
committerDavid Robillard <d@drobilla.net>2018-09-23 21:31:46 +0200
commit017982ff9d5d19d5524ebf010ea74540206c0f94 (patch)
treeeebb678e33e1a54af72e4f2e559b55632dc699a1 /src
parent3d117ed9a00c3fdbcb07327d6669aa26c3821720 (diff)
downloadingen-017982ff9d5d19d5524ebf010ea74540206c0f94.tar.gz
ingen-017982ff9d5d19d5524ebf010ea74540206c0f94.tar.bz2
ingen-017982ff9d5d19d5524ebf010ea74540206c0f94.zip
Allow context to be passed for serialisation
Diffstat (limited to 'src')
-rw-r--r--src/Serialiser.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp
index 38a2c860..36d4a87f 100644
--- a/src/Serialiser.cpp
+++ b/src/Serialiser.cpp
@@ -277,7 +277,7 @@ Serialiser::Impl::path_rdf_node(const Raul::Path& path)
}
void
-Serialiser::serialise(SPtr<const Node> object)
+Serialiser::serialise(SPtr<const Node> object, Resource::Graph context)
{
if (!me->_model) {
throw std::logic_error("serialise called without serialisation in progress");
@@ -289,9 +289,8 @@ Serialiser::serialise(SPtr<const Node> object)
const Sord::URI plugin_id(me->_model->world(), object->plugin()->uri());
me->serialise_block(object, plugin_id, me->path_rdf_node(object->path()));
} else if (object->graph_type() == Node::GraphType::PORT) {
- me->serialise_port(object.get(),
- Resource::Graph::DEFAULT,
- me->path_rdf_node(object->path()));
+ me->serialise_port(
+ object.get(), context, me->path_rdf_node(object->path()));
} else {
me->serialise_properties(me->path_rdf_node(object->path()),
object->properties());