diff options
author | Inga Stotland <inga.stotland@intel.com> | 2020-05-21 17:34:55 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-05-22 13:45:52 -0700 |
commit | 7cdc215ff5a196f86a7198e8e067c12b5d1feacc (patch) | |
tree | 3b6aaafb2574eba45f1a7ad4c1d35a8336f8d780 /mesh/node.h | |
parent | 7eca3becceed3d44c0abf1610d93307a023c1c79 (diff) | |
download | bluez-7cdc215ff5a196f86a7198e8e067c12b5d1feacc.tar.gz |
mesh: Add finalization of a newly created node
When a new node is created as a result of successful completion
of either Join() or Create() or Import() methods and has been
confirmed via successful token delivery to the application,
clean up node's D-Bus resources (application path, element paths, etc)
that have been gathered during the initial GetMAnagedObjects() call.
Also, remove the agent instance associaed with the new node.
These resources will be re-populated after the Attach() call
verifies the node's integrity.
Diffstat (limited to 'mesh/node.h')
-rw-r--r-- | mesh/node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesh/node.h b/mesh/node.h index 38aea138f..3019d316b 100644 --- a/mesh/node.h +++ b/mesh/node.h @@ -100,3 +100,4 @@ struct mesh_config *node_config_get(struct mesh_node *node); struct mesh_agent *node_get_agent(struct mesh_node *node); const char *node_get_storage_dir(struct mesh_node *node); bool node_load_from_storage(const char *storage_dir); +void node_finalize_new_node(struct mesh_node *node, struct mesh_io *io); |