--- a/src/Configuration.h Thu Oct 08 16:45:50 2020 +0200
+++ b/src/Configuration.h Thu Oct 08 17:23:07 2020 +0200
@@ -28,15 +28,22 @@
class Configuration {
public:
-
- enum class PortType {
- MIDI_INPUT,
- MIDI_OUTPUT
+
+ class ConnectionRecipe {
+ public:
+ bool connected;
+ relpipe::common::type::StringX sourcePort;
+ relpipe::common::type::StringX destinationPort;
+
+ ConnectionRecipe(bool connected, relpipe::common::type::StringX sourcePort, relpipe::common::type::StringX destinationPort) : connected(connected), sourcePort(sourcePort), destinationPort(destinationPort) {
+ }
+
};
-
+
relpipe::common::type::StringX client = L"relpipe-in-jack";
relpipe::common::type::StringX port = L"midi-in";
std::vector<relpipe::common::type::StringX> connectTo;
+ std::vector<ConnectionRecipe> connectionRecipes;
int requiredConnections = 0;
relpipe::common::type::Boolean listPorts = false;
relpipe::common::type::Boolean listConnections = false;