summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Info.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-08-28 03:07:12 +0000
committerDavid Robillard <d@drobilla.net>2015-08-28 03:07:12 +0000
commit3b22d3c8c57867cad7304dac1e9be5ee36ae9715 (patch)
tree3de4bd2f383346164ecbee3a55d17a28d32623df /src/server/LV2Info.cpp
parente6f29e606ba73af640469e3ee1e2198893ce3e5c (diff)
downloadingen-3b22d3c8c57867cad7304dac1e9be5ee36ae9715.tar.gz
ingen-3b22d3c8c57867cad7304dac1e9be5ee36ae9715.tar.bz2
ingen-3b22d3c8c57867cad7304dac1e9be5ee36ae9715.zip
Get rid of LV2Info class.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5708 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/LV2Info.cpp')
-rw-r--r--src/server/LV2Info.cpp79
1 files changed, 0 insertions, 79 deletions
diff --git a/src/server/LV2Info.cpp b/src/server/LV2Info.cpp
deleted file mode 100644
index 3c7a4df9..00000000
--- a/src/server/LV2Info.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- This file is part of Ingen.
- Copyright 2007-2015 David Robillard <http://drobilla.net/>
-
- Ingen is free software: you can redistribute it and/or modify it under the
- terms of the GNU Affero General Public License as published by the Free
- Software Foundation, either version 3 of the License, or any later version.
-
- Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU Affero General Public License for details.
-
- You should have received a copy of the GNU Affero General Public License
- along with Ingen. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#define __STDC_LIMIT_MACROS 1
-
-#include "lv2/lv2plug.in/ns/ext/atom/atom.h"
-#include "lv2/lv2plug.in/ns/ext/morph/morph.h"
-#include "lv2/lv2plug.in/ns/ext/resize-port/resize-port.h"
-#include "lv2/lv2plug.in/ns/ext/worker/worker.h"
-
-#include "ingen/World.hpp"
-#include "ingen/LV2Features.hpp"
-
-#include "LV2Info.hpp"
-#include "LV2ResizeFeature.hpp"
-
-namespace Ingen {
-namespace Server {
-
-LV2Info::LV2Info(Ingen::World* world)
- : 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_designation(lilv_new_uri(world->lilv_world(), LV2_CORE__designation))
- , lv2_portProperty(lilv_new_uri(world->lilv_world(), LV2_CORE__portProperty))
- , lv2_sampleRate(lilv_new_uri(world->lilv_world(), LV2_CORE__sampleRate))
- , morph_AutoMorphPort(lilv_new_uri(world->lilv_world(), LV2_MORPH__AutoMorphPort))
- , morph_MorphPort(lilv_new_uri(world->lilv_world(), LV2_MORPH__MorphPort))
- , morph_supportsType(lilv_new_uri(world->lilv_world(), LV2_MORPH__supportsType))
- , rsz_minimumSize(lilv_new_uri(world->lilv_world(), LV2_RESIZE_PORT__minimumSize))
- , work_schedule(lilv_new_uri(world->lilv_world(), LV2_WORKER__schedule))
- , _world(world)
-{
- world->lv2_features().add_feature(
- SPtr<LV2Features::Feature>(new ResizeFeature()));
-}
-
-LV2Info::~LV2Info()
-{
- lilv_node_free(atom_AtomPort);
- lilv_node_free(atom_bufferType);
- lilv_node_free(atom_supports);
- lilv_node_free(lv2_AudioPort);
- lilv_node_free(lv2_CVPort);
- lilv_node_free(lv2_ControlPort);
- lilv_node_free(lv2_InputPort);
- lilv_node_free(lv2_OutputPort);
- lilv_node_free(lv2_default);
- lilv_node_free(lv2_designation);
- lilv_node_free(lv2_portProperty);
- lilv_node_free(lv2_sampleRate);
- lilv_node_free(morph_AutoMorphPort);
- lilv_node_free(morph_MorphPort);
- lilv_node_free(morph_supportsType);
- lilv_node_free(rsz_minimumSize);
- lilv_node_free(work_schedule);
-}
-
-} // namespace Server
-} // namespace Ingen