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.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/server/BlockImpl.cpp') diff --git a/src/server/BlockImpl.cpp b/src/server/BlockImpl.cpp index ce6b169c..d21514ef 100644 --- a/src/server/BlockImpl.cpp +++ b/src/server/BlockImpl.cpp @@ -160,6 +160,17 @@ BlockImpl::nth_port_by_type(uint32_t n, bool input, PortType type) return NULL; } +PortImpl* +BlockImpl::port_by_symbol(const char* symbol) +{ + for (uint32_t p = 0; _ports && p < _ports->size(); ++p) { + if (_ports->at(p)->symbol() == symbol) { + return _ports->at(p); + } + } + return NULL; +} + void BlockImpl::pre_process(ProcessContext& context) { -- cgit v1.2.1