diff options
author | David Robillard <d@drobilla.net> | 2012-04-23 00:18:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-23 00:18:45 +0000 |
commit | 034c8948e8fe47b487e17a8dd438f3a9857d571a (patch) | |
tree | 3ea10e8f91f411976b3a31119a660d06508e2c5d /src/server | |
parent | 170b763db7c14be1014268198d6e02769352c5db (diff) | |
download | ingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.tar.gz ingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.tar.bz2 ingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.zip |
Use URI defines where possible.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4244 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/PortType.hpp | 11 | ||||
-rw-r--r-- | src/server/ingen_lv2.cpp | 2 |
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); |