diff options
-rw-r--r-- | src/AlsaDriver.cpp | 1 | ||||
-rw-r--r-- | src/Configuration.cpp | 1 | ||||
-rw-r--r-- | src/Configuration.hpp | 9 | ||||
-rw-r--r-- | src/JackDbusDriver.cpp | 1 | ||||
-rw-r--r-- | src/JackDriver.cpp | 1 | ||||
-rw-r--r-- | src/PatchageCanvas.cpp | 1 | ||||
-rw-r--r-- | src/PatchageModule.cpp | 3 | ||||
-rw-r--r-- | src/SignalDirection.hpp | 27 |
8 files changed, 36 insertions, 8 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp index aa2357e..015e659 100644 --- a/src/AlsaDriver.cpp +++ b/src/AlsaDriver.cpp @@ -21,6 +21,7 @@ #include "PatchageCanvas.hpp" #include "PatchageModule.hpp" #include "PatchagePort.hpp" +#include "SignalDirection.hpp" #include "handle_event.hpp" PATCHAGE_DISABLE_FMT_WARNINGS diff --git a/src/Configuration.cpp b/src/Configuration.cpp index dc89120..8333264 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -17,6 +17,7 @@ #include "Configuration.hpp" #include "Patchage.hpp" +#include "SignalDirection.hpp" #include <cctype> #include <cstdlib> diff --git a/src/Configuration.hpp b/src/Configuration.hpp index 71c6d84..c39ab01 100644 --- a/src/Configuration.hpp +++ b/src/Configuration.hpp @@ -17,19 +17,14 @@ #ifndef PATCHAGE_CONFIGURATION_HPP #define PATCHAGE_CONFIGURATION_HPP +#include "SignalDirection.hpp" + #include <boost/optional.hpp> #include <cstdint> #include <map> #include <string> -enum class SignalDirection -{ - input, - output, - duplex, -}; - enum class PortType { jack_audio, diff --git a/src/JackDbusDriver.cpp b/src/JackDbusDriver.cpp index f53ed52..3dd268b 100644 --- a/src/JackDbusDriver.cpp +++ b/src/JackDbusDriver.cpp @@ -26,6 +26,7 @@ #include "PatchageModule.hpp" #include "PatchagePort.hpp" #include "PortNames.hpp" +#include "SignalDirection.hpp" PATCHAGE_DISABLE_FMT_WARNINGS #include <fmt/core.h> diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index a86eadc..83bcf31 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -24,6 +24,7 @@ #include "PatchageModule.hpp" #include "PatchagePort.hpp" #include "PortNames.hpp" +#include "SignalDirection.hpp" #include "handle_event.hpp" #include "patchage_config.h" diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index e236ceb..b94806d 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -21,6 +21,7 @@ #include "Connector.hpp" #include "PatchageModule.hpp" #include "PatchagePort.hpp" +#include "SignalDirection.hpp" #include "warnings.hpp" #include <set> diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp index 73dd3e8..9b56856 100644 --- a/src/PatchageModule.cpp +++ b/src/PatchageModule.cpp @@ -19,10 +19,11 @@ #include "Patchage.hpp" #include "PatchageCanvas.hpp" #include "PatchagePort.hpp" +#include "SignalDirection.hpp" PatchageModule::PatchageModule(Patchage* app, const std::string& name, - SignalDirection type, + SignalDirection type, ClientID id, double x, double y) diff --git a/src/SignalDirection.hpp b/src/SignalDirection.hpp new file mode 100644 index 0000000..03a13a4 --- /dev/null +++ b/src/SignalDirection.hpp @@ -0,0 +1,27 @@ +/* This file is part of Patchage. + * Copyright 2007-2020 David Robillard <d@drobilla.net> + * + * Patchage is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free + * Software Foundation, either version 3 of the License, or (at your option) + * any later version. + * + * Patchage is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. + * + * You should have received a copy of the GNU General Public License + * along with Patchage. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef PATCHAGE_SIGNALDIRECTION_HPP +#define PATCHAGE_SIGNALDIRECTION_HPP + +enum class SignalDirection +{ + input, + output, + duplex, +}; + +#endif // PATCHAGE_SIGNALDIRECTION_HPP |