summaryrefslogtreecommitdiffstats
path: root/src/utils/signals.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/signals.hpp')
-rw-r--r--src/utils/signals.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/utils/signals.hpp b/src/utils/signals.hpp
index 8e15bd21..e575bd15 100644
--- a/src/utils/signals.hpp
+++ b/src/utils/signals.hpp
@@ -25,6 +25,17 @@
#include "can/can-signals.hpp"
#include "obd2/obd2-signals.hpp"
+extern std::mutex subscribed_signals_mutex;
+std::mutex& get_subscribed_signals_mutex();
+
+/**
+ * @brief return the subscribed_signals map.
+ *
+ * return std::map<std::string, struct afb_event> - map of subscribed signals.
+ */
+extern std::map<std::string, struct afb_event> subscribed_signals;
+std::map<std::string, struct afb_event>& get_subscribed_signals();
+
template <typename T>
void lookup_signals_by_name(const std::string& key, std::vector<T>& signals, std::vector<T*>& found_signals)
{