summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Info.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-28 00:24:06 +0000
committerDavid Robillard <d@drobilla.net>2012-05-28 00:24:06 +0000
commitcd553ca68f8a2918748989e2cdd50e1a69f380c4 (patch)
treed9d7ecc4166d858a83a029028841bf37d85819fb /src/server/LV2Info.cpp
parentd8c07248dee91e0b99e6f940c212c3316b2727e1 (diff)
downloadingen-cd553ca68f8a2918748989e2cdd50e1a69f380c4.tar.gz
ingen-cd553ca68f8a2918748989e2cdd50e1a69f380c4.tar.bz2
ingen-cd553ca68f8a2918748989e2cdd50e1a69f380c4.zip
Cache lilv nodes used for instantiation in LV2Info.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4469 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/LV2Info.cpp')
-rw-r--r--src/server/LV2Info.cpp35
1 files changed, 23 insertions, 12 deletions
diff --git a/src/server/LV2Info.cpp b/src/server/LV2Info.cpp
index 6e5d046a..e772b696 100644
--- a/src/server/LV2Info.cpp
+++ b/src/server/LV2Info.cpp
@@ -19,6 +19,7 @@
#include <assert.h>
#include "lv2/lv2plug.in/ns/ext/atom/atom.h"
+#include "lv2/lv2plug.in/ns/ext/resize-port/resize-port.h"
#include "ingen/shared/World.hpp"
#include "ingen/shared/LV2Features.hpp"
@@ -31,12 +32,17 @@ namespace Ingen {
namespace Server {
LV2Info::LV2Info(Ingen::Shared::World* world)
- : input_class(lilv_new_uri(world->lilv_world(), LV2_CORE__InputPort))
- , output_class(lilv_new_uri(world->lilv_world(), LV2_CORE__OutputPort))
- , control_class(lilv_new_uri(world->lilv_world(), LV2_CORE__ControlPort))
- , cv_class(lilv_new_uri(world->lilv_world(), LV2_CORE__CVPort))
- , audio_class(lilv_new_uri(world->lilv_world(), LV2_CORE__AudioPort))
- , atom_port_class(lilv_new_uri(world->lilv_world(), LV2_ATOM__AtomPort))
+ : atom_AtomPort(lilv_new_uri(world->lilv_world(), LV2_ATOM__AtomPort))
+ , atom_bufferType(lilv_new_uri(world->lilv_world(), LV2_ATOM__bufferType))
+ , atom_supports(lilv_new_uri(world->lilv_world(), LV2_ATOM__supports))
+ , lv2_AudioPort(lilv_new_uri(world->lilv_world(), LV2_CORE__AudioPort))
+ , lv2_CVPort(lilv_new_uri(world->lilv_world(), LV2_CORE__CVPort))
+ , lv2_ControlPort(lilv_new_uri(world->lilv_world(), LV2_CORE__ControlPort))
+ , lv2_InputPort(lilv_new_uri(world->lilv_world(), LV2_CORE__InputPort))
+ , lv2_OutputPort(lilv_new_uri(world->lilv_world(), LV2_CORE__OutputPort))
+ , lv2_default(lilv_new_uri(world->lilv_world(), LV2_CORE__default))
+ , lv2_portProperty(lilv_new_uri(world->lilv_world(), LV2_CORE__portProperty))
+ , rsz_minimumSize(lilv_new_uri(world->lilv_world(), LV2_RESIZE_PORT__minimumSize))
, _world(world)
{
assert(world);
@@ -49,12 +55,17 @@ LV2Info::LV2Info(Ingen::Shared::World* world)
LV2Info::~LV2Info()
{
- lilv_node_free(input_class);
- lilv_node_free(output_class);
- lilv_node_free(control_class);
- lilv_node_free(cv_class);
- lilv_node_free(audio_class);
- lilv_node_free(atom_port_class);
+ lilv_node_free(rsz_minimumSize);
+ lilv_node_free(lv2_portProperty);
+ lilv_node_free(lv2_default);
+ lilv_node_free(lv2_OutputPort);
+ lilv_node_free(lv2_InputPort);
+ lilv_node_free(lv2_ControlPort);
+ lilv_node_free(lv2_CVPort);
+ lilv_node_free(lv2_AudioPort);
+ lilv_node_free(atom_supports);
+ lilv_node_free(atom_bufferType);
+ lilv_node_free(atom_AtomPort);
}
} // namespace Server