X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Futils%2Fopenxc-utils.hpp;h=cf04d2207c6b62bf951cb4b0683533b4c6b8f9ee;hb=45514381c51ec65b1a2d05264a30a4d468348748;hp=61f365b0889b6ce2c9e7fafd5cbaa5a92a55f3a4;hpb=491c4d4d0bc418c1fbc6e3a1af8093e4049d8b87;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/utils/openxc-utils.hpp b/low-can-binding/utils/openxc-utils.hpp index 61f365b0..cf04d220 100644 --- a/low-can-binding/utils/openxc-utils.hpp +++ b/low-can-binding/utils/openxc-utils.hpp @@ -23,6 +23,7 @@ #include #include "openxc.pb.h" +#include "../can/signals.hpp" #include "../diagnostic/active-diagnostic-request.hpp" const openxc_VehicleMessage build_VehicleMessage(active_diagnostic_request_t* request, const DiagnosticResponse& response, float parsed_value); @@ -38,6 +39,7 @@ const openxc_DynamicField build_DynamicField(const std::string& value); const openxc_DynamicField build_DynamicField(double value); const openxc_DynamicField build_DynamicField(bool value); const openxc_DynamicField build_DynamicField(std::vector &array); +const openxc_DynamicField build_DynamicField_json(json_object *value); int get_bool_from_DynamicField(const openxc_VehicleMessage& v_msg, bool& ret); double get_numerical_from_DynamicField(const openxc_VehicleMessage& v_msg); @@ -48,4 +50,4 @@ void jsonify_DynamicField(const openxc_DynamicField& field, json_object* value); bool jsonify_simple(const openxc_SimpleMessage& s_msg, json_object* json); -bool jsonify_vehicle(const openxc_VehicleMessage& v_msg, json_object* json); +bool jsonify_vehicle(const openxc_VehicleMessage& v_msg, std::shared_ptr sig, json_object* json);