From 980b93d2539d9d35bc769db6605fa9628b46f37f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Nov 2015 04:41:01 +0000 Subject: Add support for instance-access and data-access git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5815 a436a847-0d15-0410-975c-d299462d15a1 --- src/World.cpp | 4 ++++ src/server/LV2Block.hpp | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/World.cpp b/src/World.cpp index 9d4410eb..21a7043e 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -22,7 +22,9 @@ #include #include "ingen/Configuration.hpp" +#include "ingen/DataAccess.hpp" #include "ingen/EngineBase.hpp" +#include "ingen/InstanceAccess.hpp" #include "ingen/LV2Features.hpp" #include "ingen/Log.hpp" #include "ingen/Module.hpp" @@ -125,6 +127,8 @@ public: lv2_features = new LV2Features(); lv2_features->add_feature(uri_map->urid_map_feature()); lv2_features->add_feature(uri_map->urid_unmap_feature()); + lv2_features->add_feature(SPtr(new InstanceAccess())); + lv2_features->add_feature(SPtr(new DataAccess())); lilv_world_load_all(lilv_world); // Set up RDF namespaces diff --git a/src/server/LV2Block.hpp b/src/server/LV2Block.hpp index ffb86d0a..e5d41006 100644 --- a/src/server/LV2Block.hpp +++ b/src/server/LV2Block.hpp @@ -48,6 +48,8 @@ public: bool instantiate(BufferFactory& bufs); + LilvInstance* instance() { return instance(0); } + BlockImpl* duplicate(Engine& engine, const Raul::Symbol& symbol, GraphImpl* parent); -- cgit v1.2.1