diff options
Diffstat (limited to 'src/server/BlockImpl.hpp')
-rw-r--r-- | src/server/BlockImpl.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 <boost/intrusive/slist.hpp> +#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<BlockImpl*>& providers() { return _providers; } |