Handle cancel active diag requet when there are no more subscribers
[apps/agl-service-can-low-level.git] / src / configuration.hpp
index be188b9..017b148 100644 (file)
 
 #include "low-can-binding.hpp"
 
-/**
- * @brief Class representing a configuration attached to the binding.
- *
- * @desc It regroups all needed objects instance from other class
- *  that will be used along the binding life. It gets a global vision 
- *  on which signals are implemented for that binding. 
- *  Here, it is only the definition of the class with predefined accessors
- *  methods used in the binding.
- *
- *  It will be the reference point to needed objects.
- */
+///
+/// @brief Class representing a configuration attached to the binding.
+///
+/// It regroups all needed objects instance from other class
+///  that will be used along the binding life. It gets a global vision 
+///  on which signals are implemented for that binding. 
+///  Here, it is only the definition of the class with predefined accessors
+///  methods used in the binding.
+///
+///  It will be the reference point to needed objects.
+///
 class configuration_t
 {
        private:
@@ -88,6 +88,9 @@ class configuration_t
                void set_active_message_set(uint8_t id);
 
                void find_diagnostic_messages(const openxc_DynamicField &key, std::vector<diagnostic_message_t*>& found_signals);
+               diagnostic_message_t* get_diagnostic_message(std::string message_name) const;
+               DiagnosticRequest* get_request_from_diagnostic_message(diagnostic_message_t* diag_msg) const;
+               DiagnosticRequest* get_request_from_diagnostic_message(std::string message_name) const;
 
                void find_can_signals(const openxc_DynamicField &key, std::vector<can_signal_t*>& found_signals);