From 2049aca0927b55f2a256fd60ff686616b73eecb7 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 8 Mar 2017 02:41:56 +0100 Subject: Beginning of work of get central configuration object that will be used by the binding to access generated elements. It will hold generated structure/objects and make a resume to the binding configuration. Idea is to have an object that can be inherited in the generated code to extend its functionnalities or change some of its behoviors. Change-Id: If2ce5cbe2eb98a74a8e3f13000ee02855674216f Signed-off-by: Romain Forlot --- src/utils/signals.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/utils') 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 - map of subscribed signals. + */ +extern std::map subscribed_signals; +std::map& get_subscribed_signals(); + template void lookup_signals_by_name(const std::string& key, std::vector& signals, std::vector& found_signals) { -- cgit 1.2.3-korg