mesh: Base config json code on newer version of json-c

System Internals / BlueZ - Inga Stotland [intel.com] - 24 December 2019 18:38 UTC

This removes a roundabout logic that was required to delete a json entry from a json array using libjsonc utilities. A new API function, json_object_array_del_idx(), implemented in json-c version 0.13 simplifies array entry removal to one call.

Also, add requirement to configure.ac for json-c version >= 0.13

11d7fe853 mesh: Base config json code on newer version of json-c
configure.ac | 4 +-
mesh/mesh-config-json.c | 126 +++++++++---------------------------------------
tools/mesh/mesh-db.c | 42 ++++------------
3 files changed, 34 insertions(+), 138 deletions(-)

Upstream: git.kernel.org


  • Share