summaryrefslogtreecommitdiffstats
path: root/low-can-binding/utils/openxc-utils.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-11-20 19:40:47 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-11-22 11:10:26 +0100
commit2daa033bd69b9ede497afa4355a5fdbb119895eb (patch)
treeefcc773aab14a4e0bbddd445f951523bf7c406bd /low-can-binding/utils/openxc-utils.hpp
parent6d52fb871953e3c0219a8dd1c4a62fc3143925df (diff)
Adds a new function to build from a json_object.
Build an openxc_DynamicField from a json_object. Change-Id: I57033daca5fd4f198b872f015255893d9f8f9303 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/utils/openxc-utils.hpp')
-rw-r--r--low-can-binding/utils/openxc-utils.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/low-can-binding/utils/openxc-utils.hpp b/low-can-binding/utils/openxc-utils.hpp
index 57663045..a84bc350 100644
--- a/low-can-binding/utils/openxc-utils.hpp
+++ b/low-can-binding/utils/openxc-utils.hpp
@@ -32,6 +32,7 @@ openxc_VehicleMessage build_VehicleMessage();
bool is_valid(const openxc_VehicleMessage& v);
const openxc_SimpleMessage build_SimpleMessage(const std::string& name, const openxc_DynamicField& value);
+const openxc_DynamicField build_DynamicField(json_object* value);
const openxc_DynamicField build_DynamicField(const char* value);
const openxc_DynamicField build_DynamicField(const std::string& value);
const openxc_DynamicField build_DynamicField(double value);