diff options
Diffstat (limited to 'src/mesh/mesh_tunnel_tree.h')
-rw-r--r-- | src/mesh/mesh_tunnel_tree.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/mesh/mesh_tunnel_tree.h b/src/mesh/mesh_tunnel_tree.h index 5060fa1a7..dd31661ac 100644 --- a/src/mesh/mesh_tunnel_tree.h +++ b/src/mesh/mesh_tunnel_tree.h | |||
@@ -113,19 +113,6 @@ path_get_length (struct MeshPeerPath *p); | |||
113 | 113 | ||
114 | 114 | ||
115 | /** | 115 | /** |
116 | * Get the cost of the path relative to the already built tunnel tree | ||
117 | * | ||
118 | * @param t The tunnel tree to which compare | ||
119 | * @param path The individual path to reach a peer | ||
120 | * | ||
121 | * @return Number of hops to reach destination, UINT_MAX in case the peer is not | ||
122 | * in the path | ||
123 | */ | ||
124 | unsigned int | ||
125 | path_get_cost (struct MeshTunnelTree *t, struct MeshPeerPath *path); | ||
126 | |||
127 | |||
128 | /** | ||
129 | * Destroy the path and free any allocated resources linked to it | 116 | * Destroy the path and free any allocated resources linked to it |
130 | * | 117 | * |
131 | * @param p the path to destroy | 118 | * @param p the path to destroy |
@@ -324,6 +311,20 @@ int | |||
324 | tree_del_peer (struct MeshTunnelTree *t, GNUNET_PEER_Id peer, | 311 | tree_del_peer (struct MeshTunnelTree *t, GNUNET_PEER_Id peer, |
325 | MeshTreeCallback cb, void *cbcls); | 312 | MeshTreeCallback cb, void *cbcls); |
326 | 313 | ||
314 | |||
315 | /** | ||
316 | * Get the cost of the path relative to the already built tunnel tree | ||
317 | * | ||
318 | * @param t The tunnel tree to which compare | ||
319 | * @param path The individual path to reach a peer | ||
320 | * | ||
321 | * @return Number of hops to reach destination, UINT_MAX in case the peer is not | ||
322 | * in the path | ||
323 | */ | ||
324 | unsigned int | ||
325 | tree_get_path_cost (struct MeshTunnelTree *t, struct MeshPeerPath *path); | ||
326 | |||
327 | |||
327 | /** | 328 | /** |
328 | * Print the tree on stderr | 329 | * Print the tree on stderr |
329 | * | 330 | * |