[PATCH BlueZ 0/9] mesh: Configuration storage re-org

Inga Stotland
2019-07-10T05:10:03Z

This set of patches introduces the notion of generic mesh-config API
that allows the daemon to be agnostic of the underlying node configuration
directory layout and the format of the file(s) in which node configuration
is saved. The only assumption is that the configuration is stored in
<mesh_storage_directory>/<node_uuid> directory.

Currently, the daemon supports only JSON-based configuration format.
It is expected that other configuration formats may be added in future.

Inga Stotland (9):
mesh: Move network config setup from storage.c to node.c
mesh: Rename mesh-db.c to mesh-config-json.c
mesh: Change mesh_db prefix to mesh_config
mesh: Generalize mesh-config APIs
mesh: Change variable prefix "jconfig" to "config"
mesh: Define storage format specific read/write routines
mesh: Implement config read/write for mesh json format
mesh: Switch to using mesh-config routines for storage
mesh: Make storage.c json-c agnostic

Makefile.mesh | 2 +-
mesh/cfgmod-server.c | 27 +-
mesh/{mesh-db.c => mesh-config-json.c} | 515 ++++++++++++++++++-------
mesh/mesh-config.h | 161 ++++++++
mesh/mesh-db.h | 157 --------
mesh/mesh.c | 11 +-
mesh/model.c | 7 +-
mesh/node.c | 83 ++--
mesh/node.h | 4 +-
mesh/storage.c | 385 +++++++-----------
10 files changed, 745 insertions(+), 607 deletions(-)
rename mesh/{mesh-db.c => mesh-config-json.c} (73%)
create mode 100644 mesh/mesh-config.h
delete mode 100644 mesh/mesh-db.h

--
2.21.0