Update some lv2 code

This commit is contained in:
falkTX 2013-01-14 00:21:30 +00:00
parent 366f1f1680
commit 7205bca150
4 changed files with 638 additions and 603 deletions

View File

@ -19,7 +19,8 @@ TEMPLATE = app
VERSION = 0.5.0
SOURCES = \
carla-discovery.cpp
carla-discovery.cpp \
../utils/carla_lv2_utils.hpp
HEADERS = \
../includes/carla_defines.hpp \
@ -48,4 +49,5 @@ mingw {
LIBS += -static -mwindows
}
QMAKE_CFLAGS *= -std=c++0x
QMAKE_CXXFLAGS *= -std=c++0x

View File

@ -27,7 +27,7 @@
#include <stdio.h>
#include "lv2/lv2plug.in/ns/lv2core/lv2.h"
#include "lv2.h"
#define LV2_DYN_MANIFEST_URI "http://lv2plug.in/ns/ext/dynmanifest"

View File

@ -214,6 +214,7 @@ struct Plugin {
LILV_WRAP0(bool, plugin, is_replaced);
LILV_WRAP0(Nodes, plugin, get_extension_data);
LILV_WRAP0(UIs, plugin, get_uis);
LILV_WRAP1(Nodes, plugin, get_related, Node, type);
inline Port get_port_by_index(unsigned index) {
return Port(me, lilv_plugin_get_port_by_index(me, index));
@ -323,6 +324,7 @@ struct World {
LILV_WRAP0(const LilvPluginClass*, world, get_plugin_class);
LILV_WRAP0(const LilvPluginClasses*, world, get_plugin_classes);
LILV_WRAP0(const Plugins, world, get_all_plugins);
LILV_WRAP1(int, world, load_resource, const LilvNode*, resource);
LilvWorld* me;
};

File diff suppressed because it is too large Load Diff