From f886559f8a8ac1dadf4942ab2c993a6db4f53d2b Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 15 Mar 2017 23:18:33 +0100 Subject: Ease use of openXC structures. Add some helpers functions used to check VehicleMessage validity or build default VehicleMessage struct. Change-Id: Ia1cca8b4cb3dd70a739d0f2ee9165b72fdac48d4 Signed-off-by: Romain Forlot --- src/utils/openxc-utils.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils/openxc-utils.hpp') diff --git a/src/utils/openxc-utils.hpp b/src/utils/openxc-utils.hpp index c51fd3a..f9ccf79 100644 --- a/src/utils/openxc-utils.hpp +++ b/src/utils/openxc-utils.hpp @@ -27,6 +27,8 @@ openxc_VehicleMessage build_VehicleMessage(active_diagnostic_request_t* request, const DiagnosticResponse& response, float parsed_value); openxc_VehicleMessage build_VehicleMessage(const openxc_SimpleMessage& message); +openxc_VehicleMessage build_VehicleMessage(); +bool is_valid(const openxc_VehicleMessage& v); openxc_SimpleMessage build_SimpleMessage(const std::string& name, const openxc_DynamicField& value); openxc_DynamicField build_DynamicField(const std::string& value); -- cgit 1.2.3-korg