summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libs/client/Loader.cpp1
-rw-r--r--src/libs/client/Serializer.cpp8
-rw-r--r--src/libs/client/Serializer.h2
3 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/client/Loader.cpp b/src/libs/client/Loader.cpp
index 9c6f7fb0..5120b97b 100644
--- a/src/libs/client/Loader.cpp
+++ b/src/libs/client/Loader.cpp
@@ -34,6 +34,7 @@ Loader::Loader(SharedPtr<ModelEngineInterface> engine, SharedPtr<Namespaces> nam
// FIXME: hack
_namespaces->add("ingen", "http://codeson.net/ns/ingen#");
_namespaces->add("ingenuity", "http://codeson.net/ns/ingenuity#");
+ _namespaces->add("lv2", "http://lv2plug.in/ontology#>");
}
diff --git a/src/libs/client/Serializer.cpp b/src/libs/client/Serializer.cpp
index 5ce2674a..ef19d94d 100644
--- a/src/libs/client/Serializer.cpp
+++ b/src/libs/client/Serializer.cpp
@@ -47,6 +47,14 @@ namespace Ingen {
namespace Client {
+Serializer::Serializer()
+{
+ _writer.add_prefix("ingen", "http://codeson.net/ns/ingen#");
+ _writer.add_prefix("ingenuity", "http://codeson.net/ns/ingenuity#");
+ _writer.add_prefix("lv2", "http://lv2plug.in/ontology#>");
+}
+
+
/** Begin a serialization to a file.
*
* This must be called before any serializing methods.
diff --git a/src/libs/client/Serializer.h b/src/libs/client/Serializer.h
index 2b896290..5476002c 100644
--- a/src/libs/client/Serializer.h
+++ b/src/libs/client/Serializer.h
@@ -57,6 +57,8 @@ class ModelEngineInterface;
class Serializer
{
public:
+ Serializer();
+
//void path(const string& path) { _patch_search_path = path; }
//const string& path() { return _patch_search_path; }