Commit: 07e16e8aa69b3030035830c30068841c4deeef3d
Parent: 7cd089ea6b792ca9d9f2741e1da3336587ee8383
Author: MichaƂ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2019-07-26 19:08:58
Tree: 03424da273d16bb65475a514f763cb6025669119

mesh: Validate application by comparing composition data Instead of validating application by enumerating D-Bus objects, create a temporary node instance and check if composition data generated for the temporary matches the node loaded from storage. This allows node validation logic (primary element, mandatory models etc) to be confined in node_generate_comp() function. This also streamlines code implementing Attach(), Join() and CreateNetwork() calls.

Diffstat

M mesh/mesh-defs.h | 2 ++
M mesh/node.c | 432 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

2 files changed, 195 insertions(+), 239 deletions(-)

View Full Diff | Patch