diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 17:57:43 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:42:51 +0100 |
commit | 5f5e293345a063ab7b274edcc76d329891503379 (patch) | |
tree | 36a346cc4d2bb65d9d2a0e64a0b3270ace37a562 /src/JackDbusDriver.cpp | |
parent | f9ff5a5586166ee2f44b43f347726f98c9a966af (diff) | |
download | patchage-5f5e293345a063ab7b274edcc76d329891503379.tar.gz patchage-5f5e293345a063ab7b274edcc76d329891503379.tar.bz2 patchage-5f5e293345a063ab7b274edcc76d329891503379.zip |
Use consistent naming convention for enum classes
Diffstat (limited to 'src/JackDbusDriver.cpp')
-rw-r--r-- | src/JackDbusDriver.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/JackDbusDriver.cpp b/src/JackDbusDriver.cpp index 278c837..9c913c0 100644 --- a/src/JackDbusDriver.cpp +++ b/src/JackDbusDriver.cpp @@ -76,8 +76,8 @@ JackDriver::~JackDriver() static bool is_jack_port(const PatchagePort* port) { - return port->type() == PortType::JACK_AUDIO || - port->type() == PortType::JACK_MIDI; + return port->type() == PortType::jack_audio || + port->type() == PortType::jack_midi; } /** Destroy all JACK (canvas) ports. @@ -610,23 +610,23 @@ JackDriver::add_port(dbus_uint64_t client_id, switch (port_type) { case JACKDBUS_PORT_TYPE_AUDIO: - local_port_type = PortType::JACK_AUDIO; + local_port_type = PortType::jack_audio; break; case JACKDBUS_PORT_TYPE_MIDI: - local_port_type = PortType::JACK_MIDI; + local_port_type = PortType::jack_midi; break; default: error_msg("Unknown JACK D-Bus port type"); return; } - ModuleType type = ModuleType::InputOutput; + ModuleType type = ModuleType::input_output; if (_app->conf()->get_module_split( client_name, port_flags & JACKDBUS_PORT_FLAG_TERMINAL)) { if (port_flags & JACKDBUS_PORT_FLAG_INPUT) { - type = ModuleType::Input; + type = ModuleType::input; } else { - type = ModuleType::Output; + type = ModuleType::output; } } |