From 859ace60e8b1c4c0d9c5bea88d8eed1265ea859e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 15 Aug 2012 02:01:28 +0000 Subject: Remove EnginePort::move() in favour of Driver::rename_port(). Remove redundant Driver::engine_port(). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4698 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/ingen_lv2.cpp | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'src/server/ingen_lv2.cpp') diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index 1ad6ac72..a28eb5fc 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -209,7 +209,17 @@ public: virtual void set_root_patch(PatchImpl* patch) { _root_patch = patch; } virtual PatchImpl* root_patch() { return _root_patch; } - /** Unused since LV2 has no dynamic ports. */ + virtual EnginePort* engine_port(ProcessContext& context, + const Raul::Path& path) { + for (Ports::iterator i = _ports.begin(); i != _ports.end(); ++i) { + if ((*i)->patch_port()->path() == path) { + return (*i); + } + } + + return NULL; + } + EnginePort* port(const Raul::Path& path) { return NULL; } /** Doesn't have to be real-time safe since LV2 has no dynamic ports. */ @@ -232,19 +242,14 @@ public: return NULL; } + /** UNused since LV2 has no dynamic ports. */ + virtual void rename_port(const Raul::Path& old_path, + const Raul::Path& new_path) {} + virtual EnginePort* create_port(DuplexPort* patch_port) { return new LV2Port(this, patch_port); } - virtual EnginePort* engine_port(ProcessContext& context, - const Raul::Path& path) { - for (Ports::iterator i = _ports.begin(); i != _ports.end(); ++i) - if ((*i)->patch_port()->path() == path) - return (*i); - - return NULL; - } - /** Called in run thread for events received at control input port. */ void enqueue_message(const LV2_Atom* atom) { if (_from_ui.write(lv2_atom_total_size(atom), atom) == 0) { -- cgit v1.2.1