diff options
author | MichaĆ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com> | 2019-05-08 16:24:45 +0200 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-05-08 11:31:18 -0700 |
commit | 64670a4a31d53fe8b5b801ab1f8659e3d0ed2000 (patch) | |
tree | 6b402c828d0403e1a9935c147a8a221c54b80c3f /mesh/node.h | |
parent | 08c45ed6805c09e3d3e4aa3e61898a28460d8fa0 (diff) | |
download | bluez-64670a4a31d53fe8b5b801ab1f8659e3d0ed2000.tar.gz |
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
Diffstat (limited to 'mesh/node.h')
-rw-r--r-- | mesh/node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh/node.h b/mesh/node.h index 20b60099e..1be4de1da 100644 --- a/mesh/node.h +++ b/mesh/node.h @@ -33,7 +33,7 @@ typedef void (*node_ready_func_t) (void *user_data, int status, typedef void (*node_join_ready_func_t) (struct mesh_node *node, struct mesh_agent *agent); -struct mesh_node *node_new(void); +struct mesh_node *node_new(const uint8_t uuid[16]); void node_remove(struct mesh_node *node); void node_join(const char *app_path, const char *sender, const uint8_t *uuid, node_join_ready_func_t cb); |