aboutsummaryrefslogtreecommitdiffstats
path: root/daemon/src/connection_manager.h
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-08-21 14:24:55 +0200
committerEddy Pedroni <epedroni@pm.me>2025-08-21 14:24:55 +0200
commit7f1179f01ed200240856e35038da0993f84ec312 (patch)
tree1a9ea6442c70183f2df06198ceab90a5f71b520e /daemon/src/connection_manager.h
parentce3b2eb271aa68fef345701188fc9f77abee99c8 (diff)
More robust config parsing
Diffstat (limited to 'daemon/src/connection_manager.h')
-rw-r--r--daemon/src/connection_manager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/src/connection_manager.h b/daemon/src/connection_manager.h
index d8b0e90..2711d34 100644
--- a/daemon/src/connection_manager.h
+++ b/daemon/src/connection_manager.h
@@ -8,6 +8,8 @@
#include <memory>
#include <map>
#include <thread>
+#include <optional>
+#include <functional>
namespace midi_router
{
@@ -21,7 +23,7 @@ public:
~Connection_Manager();
- Sender &
+ std::optional<std::reference_wrapper<Sender>>
get_sender(Device_Id const & device) const;
private: