mesh: Add finalization of a newly created node

System Internals / BlueZ - Inga Stotland [intel.com] - 22 May 2020 20:45 UTC

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.

7cdc215ff mesh: Add finalization of a newly created node
mesh/mesh.c | 4 ++--
mesh/node.c | 39 +++++++++++++++++++++++++--------------
mesh/node.h | 1 +
3 files changed, 28 insertions(+), 16 deletions(-)

Upstream: git.kernel.org


  • Share