summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/PortType.hpp11
-rw-r--r--src/server/ingen_lv2.cpp2
2 files changed, 8 insertions, 5 deletions
diff --git a/src/server/PortType.hpp b/src/server/PortType.hpp
index 41b6f636..14cb721a 100644
--- a/src/server/PortType.hpp
+++ b/src/server/PortType.hpp
@@ -19,6 +19,9 @@
#include "raul/URI.hpp"
+#include "lv2/lv2plug.in/ns/ext/atom/atom.h"
+#include "lv2/lv2plug.in/ns/lv2core/lv2.h"
+
namespace Ingen {
/** The type of a port.
@@ -74,10 +77,10 @@ private:
assert(symbol_num <= ATOM);
static const Raul::URI uris[] = {
"http://drobilla.net/ns/ingen#nil",
- "http://lv2plug.in/ns/lv2core#AudioPort",
- "http://lv2plug.in/ns/lv2core#ControlPort",
- "http://lv2plug.in/ns/lv2core#CVPort",
- "http://lv2plug.in/ns/ext/atom#AtomPort"
+ LV2_CORE__AudioPort,
+ LV2_CORE__ControlPort,
+ LV2_CORE__CVPort,
+ LV2_ATOM__AtomPort
};
return uris[symbol_num];
}
diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp
index 70a1482f..a8466dda 100644
--- a/src/server/ingen_lv2.cpp
+++ b/src/server/ingen_lv2.cpp
@@ -545,7 +545,7 @@ ingen_save(LV2_Handle instance,
LV2_URID ingen_file = plugin->map->map(plugin->map->handle, NS_INGEN "file");
LV2_URID atom_Path = plugin->map->map(plugin->map->handle,
- "http://lv2plug.in/ns/ext/atom#Path");
+ LV2_ATOM__Path);
char* real_path = make_path->path(make_path->handle, "patch.ttl");
char* state_path = map_path->abstract_path(map_path->handle, real_path);