From 41f95375a65a3f67a75258680d6d8b03bb4d678b Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Wed, 23 Jul 2025 14:05:13 +0200 Subject: Working with hardcoded routing table --- daemon/src/connection_manager.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'daemon/src/connection_manager.h') diff --git a/daemon/src/connection_manager.h b/daemon/src/connection_manager.h index 240e436..e15eaaa 100644 --- a/daemon/src/connection_manager.h +++ b/daemon/src/connection_manager.h @@ -1,12 +1,12 @@ #pragma once #include "types.h" -#include "message.h" +#include "submitter.h" +#include "sender.h" -#include #include -#include #include +#include class RtMidi; @@ -18,17 +18,20 @@ struct Device_Connection; class Connection_Manager { public: - Connection_Manager(Device_Map const & device_map, std::function const & submit); + Connection_Manager(Device_Map const & device_map, Submitter & submitter); ~Connection_Manager(); + Sender & + get_sender(Device_Id const & device) const; + 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; + Submitter & m_submitter; + std::map> m_connections; }; } // namespace midi_router -- cgit v1.2.3