Parent: d1a76eb3f4d296fbd688edd9b3f2234b30459742
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2019-07-16 00:47:36
Tree: 956116a5ff5219cd6f0d90b13de1bf82ca9850c9
mesh: Confine dependency on json-c to mesh-config-json.c This removes dependency on json-s/json.h header from everywhere in the code except for mesh-config-json.c. The details about node configuration storage format are obfuscated: a pointer to an opaque mesh_config structure is stored with mesh_node and is passed around to mae all the storage related operations.
Diffstat
| M | mesh/cfgmod-server.c | | | 17 | +++++++- - - - - - - - - - |
| M | mesh/mesh-config-json.c | | | 558 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | mesh/mesh-config.h | | | 77 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | mesh/model.c | | | 1 | - |
| M | mesh/node.c | | | 38 | +++++++++++++++++++- - - - - - - - - - - - - - - - - - - |
| M | mesh/node.h | | | 9 | ++++++- - - |
| M | mesh/storage.c | | | 205 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | mesh/storage.h | | | 4 | +++- |
8 files changed, 525 insertions(+), 384 deletions(-)