aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/mesh_tunnel_tree.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-12-10 17:44:05 +0000
committerBart Polot <bart@net.in.tum.de>2012-12-10 17:44:05 +0000
commit1732a8b82b81649ec917b8574d4827120dba0320 (patch)
treeb349eff3dd5afd4a7b2e7d229f8d351b6285f4f3 /src/mesh/mesh_tunnel_tree.h
parentc08cc4006edfa3d2fdd48c3aa48e45104fccf666 (diff)
downloadgnunet-1732a8b82b81649ec917b8574d4827120dba0320.tar.gz
gnunet-1732a8b82b81649ec917b8574d4827120dba0320.zip
- add children count api call
Diffstat (limited to 'src/mesh/mesh_tunnel_tree.h')
-rw-r--r--src/mesh/mesh_tunnel_tree.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesh/mesh_tunnel_tree.h b/src/mesh/mesh_tunnel_tree.h
index b1d89d6ff..94dcf13bf 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,
243 MeshWholeTreeCallback cb, 243 MeshWholeTreeCallback cb,
244 void *cb_cls); 244 void *cb_cls);
245 245
246/**
247 * Count how many children does the local node have in the tree.
248 *
249 * @param tree Tree to use. Must have "me" set.
250 */
251unsigned int
252tree_count_children (struct MeshTunnelTree *tree);
253
246 254
247/** 255/**
248 * Recusively update the info about what is the first hop to reach the node 256 * Recusively update the info about what is the first hop to reach the node