Commit: c4bf0626fb621559ecaea7e1eadf22d386b7ee63
Parent: d8b2bef41b36971f567885cdefbf50d3269a9631
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2019-07-16 00:48:04
Tree: 2d9499be4b18a0454860e9b90d47b2c59eb0d7a0

mesh: Replace storage_save_config with mesh_config_save_config This moves writing out of node configuration from storage.c down to mesh-config-<format-specific>.c to allow for more generic storage layout. New generalized API in mesh-config.h: mesh_config_save_config(struct mesh_config *cfg, bool no_wait, mesh_config_status_func_t cb, void *user_data) replaces the old one in storage.h: storage_save_config(struct mesh_node *node, bool no_wait, mesh_status_func_t cb, void *user_data) Currently, only JSON format is supported for storing node configuration: mesh_config_save_config is implemented in mesh-config-json.c

Diffstat

M mesh/mesh-config-json.c | 70 ++++++++++++++++++++++++++++++++++++++++- - - - - - -
M mesh/mesh-config.h | 9 +++++- - - -
M mesh/node.c | 6 +++- - -
M mesh/storage.c | 82 +++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M mesh/storage.h | 2 - -

5 files changed, 84 insertions(+), 85 deletions(-)

View Full Diff | Patch