mesh: Use node uuids as storage directory names
authorMichał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Wed, 8 May 2019 14:24:45 +0000 (16:24 +0200)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 14:26:43 +0000 (19:56 +0530)
commit409b8f0150dc3b4e1e9ce188733eaacabc8871a1
tree0131a0260104daae797e5bca2da9aa26e0c54f0a
parentd44408da1006a6266fad4414f5cf8b74b25043ad
mesh: Use node uuids as storage directory names

Instead of keeping track of unique 16bit node identifiers, reuse their
UUIDs to create both storage directories and dbus objects.

Because of that:
 - UUID is no longer stored in the JSON file, it's inferred from the
   directory name instead
 - Join(), CreateNetwork() and ImportLocalNode() APIs return an error if
   given UUID already registered within the daemon

Change-Id: I86032691fa81003c5503880c4bbf9a76aa7bd26e
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
doc/mesh-api.txt
mesh/README
mesh/mesh-db.c
mesh/mesh-db.h
mesh/mesh.c
mesh/node.c
mesh/node.h
mesh/storage.c