diff options
author | David Robillard <d@drobilla.net> | 2008-09-07 20:16:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-07 20:16:49 +0000 |
commit | eede1a188c2da2c926d49902f2b2c411774342af (patch) | |
tree | 6dfa7861c5bf21c1db5175e88249d28027bb16a7 /src/JackDriver.cpp | |
parent | 19b035f0f0a78d5906664e3080ff467413f20ec2 (diff) | |
download | patchage-eede1a188c2da2c926d49902f2b2c411774342af.tar.gz patchage-eede1a188c2da2c926d49902f2b2c411774342af.tar.bz2 patchage-eede1a188c2da2c926d49902f2b2c411774342af.zip |
Separate PortRef (now PortID) from PatchageEvent.
git-svn-id: http://svn.drobilla.net/lad/patchage@1477 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r-- | src/JackDriver.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index d31d499..609842e 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -141,16 +141,16 @@ JackDriver::destroy_all_ports() boost::shared_ptr<PatchagePort> -JackDriver::create_port_view(Patchage* patchage, - const PatchageEvent::PortRef& ref) +JackDriver::create_port_view(Patchage* patchage, + const PortID& id) { jack_port_t* jack_port = NULL; - if (ref.type == PatchageEvent::PortRef::JACK_ID) - jack_port = jack_port_by_id(_client, ref.id.jack_id); + if (id.type == PortID::JACK_ID) + jack_port = jack_port_by_id(_client, id.id.jack_id); string module_name, port_name; - port_names(ref, module_name, port_name); + port_names(id, module_name, port_name); ModuleType type = InputOutput; if (_app->state_manager()->get_module_split(module_name, @@ -351,14 +351,14 @@ JackDriver::refresh() bool -JackDriver::port_names(const PatchageEvent::PortRef& ref, - string& module_name, - string& port_name) +JackDriver::port_names(const PortID& id, + string& module_name, + string& port_name) { jack_port_t* jack_port = NULL; - if (ref.type == PatchageEvent::PortRef::JACK_ID) - jack_port = jack_port_by_id(_client, ref.id.jack_id); + if (id.type == PortID::JACK_ID) + jack_port = jack_port_by_id(_client, id.id.jack_id); if (!jack_port) { module_name = ""; |