From 46d396e04947a76756739576a29c8369f8cd0c50 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 30 Mar 2017 17:19:59 +0200 Subject: Handle cancel active diag requet when there are no more subscribers When push events if there is no more subscribers to that event then call a function that will cleanup that request from diagnostic manager queue. Change-Id: I8153701074453444a5bba6f1374401bdf230f7e6 Signed-off-by: Romain Forlot --- src/configuration.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/configuration.hpp') diff --git a/src/configuration.hpp b/src/configuration.hpp index 57eeef3d..017b148d 100644 --- a/src/configuration.hpp +++ b/src/configuration.hpp @@ -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& 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& found_signals); -- cgit 1.2.3-korg