diff options
author | Eddy Pedroni <epedroni@pm.me> | 2025-07-22 22:00:00 +0200 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2025-07-22 22:00:00 +0200 |
commit | 6da14e1590935710055ebc81ba55017b457ca1ad (patch) | |
tree | 799daf6f75331183ea48ece00d62ec92f0fc7a51 /daemon/src/routing.cpp | |
parent | f0835be9ffcae8e5c74c8fc6a0da2f7bc49343ac (diff) |
Initial daemon implementation, no routing yet
Diffstat (limited to 'daemon/src/routing.cpp')
-rw-r--r-- | daemon/src/routing.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/daemon/src/routing.cpp b/daemon/src/routing.cpp new file mode 100644 index 0000000..709d815 --- /dev/null +++ b/daemon/src/routing.cpp @@ -0,0 +1,24 @@ +#include "routing.h" + +#include <iostream> + +namespace midi_router +{ + +void +Router::route(Route_Map const & config) const +{ + +} + +void +Router::submit(Message const & message) +{ + if (!m_queue.try_enqueue(message)) + { + std::cout << "Failed to enqueue message from " << message.source_id << "\n"; + } +} + +} // namespace midi_router + |