From aef939ff10362285ce1ebd872518627e524917bc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 19 Feb 2015 09:44:41 +0000 Subject: Server side presets. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5587 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/BlockImpl.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/server/BlockImpl.hpp') diff --git a/src/server/BlockImpl.hpp b/src/server/BlockImpl.hpp index b3064168..965adbcc 100644 --- a/src/server/BlockImpl.hpp +++ b/src/server/BlockImpl.hpp @@ -21,6 +21,8 @@ #include +#include "lilv/lilv.h" + #include "raul/Array.hpp" #include "BufferRef.hpp" @@ -98,6 +100,12 @@ public: /** Enable or disable (bypass) this block. */ void set_enabled(bool e) { _enabled = e; } + /** Load a preset from the world for this block. */ + virtual LilvState* load_preset(const Raul::URI& uri) { return NULL; } + + /** Restore `state`. */ + virtual void apply_state(LilvState* state) {} + /** Learn the next incoming MIDI event (for internals) */ virtual void learn() {} @@ -122,6 +130,9 @@ public: virtual Node* port(uint32_t index) const; virtual PortImpl* port_impl(uint32_t index) const { return (*_ports)[index]; } + /** Get a port by symbol. */ + virtual PortImpl* port_by_symbol(const char* symbol); + /** Blocks that are connected to this Block's inputs. */ std::list& providers() { return _providers; } -- cgit v1.2.1