X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmesh%2Fmesh_tunnel_tree.h;h=e5d65921df0c71a97050c3c0c1ed5b603f681879;hb=1ef7f26b7579ae2a6256751a3f5ebfbf60afbb2f;hp=b1d89d6ff2d3ab164708c628e68bfdc2652ec6b6;hpb=afd56af75f0a16ee5b8ab7777871294931ca265c;p=oweals%2Fgnunet.git diff --git a/src/mesh/mesh_tunnel_tree.h b/src/mesh/mesh_tunnel_tree.h index b1d89d6ff..e5d65921d 100644 --- a/src/mesh/mesh_tunnel_tree.h +++ b/src/mesh/mesh_tunnel_tree.h @@ -243,6 +243,14 @@ tree_iterate_all (struct MeshTunnelTree *tree, MeshWholeTreeCallback cb, void *cb_cls); +/** + * Count how many children does the local node have in the tree. + * + * @param tree Tree to use. Must have "me" set. + */ +unsigned int +tree_count_children (struct MeshTunnelTree *tree); + /** * Recusively update the info about what is the first hop to reach the node @@ -329,6 +337,8 @@ tree_notify_connection_broken (struct MeshTunnelTree *t, GNUNET_PEER_Id p1, * If the tree is not local and no longer has any paths, the root node will be * destroyed and marked as NULL. * + * FIXME: dont destroy the root + * * @param t Tunnel tree to use. * @param peer Short ID of the peer to remove from the tunnel tree. * @param cb Callback to notify client of disconnected peers.