aboutsummaryrefslogtreecommitdiffstats
path: root/daemon/src/routing.cpp
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-07-22 22:00:00 +0200
committerEddy Pedroni <epedroni@pm.me>2025-07-22 22:00:00 +0200
commit6da14e1590935710055ebc81ba55017b457ca1ad (patch)
tree799daf6f75331183ea48ece00d62ec92f0fc7a51 /daemon/src/routing.cpp
parentf0835be9ffcae8e5c74c8fc6a0da2f7bc49343ac (diff)
Initial daemon implementation, no routing yet
Diffstat (limited to 'daemon/src/routing.cpp')
-rw-r--r--daemon/src/routing.cpp24
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
+