From 6da14e1590935710055ebc81ba55017b457ca1ad Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 22 Jul 2025 22:00:00 +0200 Subject: Initial daemon implementation, no routing yet --- daemon/src/connection_manager.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 daemon/src/connection_manager.h (limited to 'daemon/src/connection_manager.h') diff --git a/daemon/src/connection_manager.h b/daemon/src/connection_manager.h new file mode 100644 index 0000000..240e436 --- /dev/null +++ b/daemon/src/connection_manager.h @@ -0,0 +1,34 @@ +#pragma once + +#include "types.h" +#include "message.h" + +#include +#include +#include +#include + +class RtMidi; + +namespace midi_router +{ + +struct Device_Connection; + +class Connection_Manager +{ +public: + Connection_Manager(Device_Map const & device_map, std::function const & submit); + + ~Connection_Manager(); + +private: + static bool + open_port(RtMidi* const midi, std::string const & name); + + Device_Map const & m_device_map; + std::function m_submit; + std::map> m_connections; +}; + +} // namespace midi_router -- cgit v1.2.3