diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_tunnel.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.h b/src/cadet/gnunet-service-cadet_tunnel.h index f94153258..382fcdf33 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.h +++ b/src/cadet/gnunet-service-cadet_tunnel.h | |||
@@ -51,7 +51,7 @@ enum CadetTunnelCState | |||
51 | CADET_TUNNEL_NEW, | 51 | CADET_TUNNEL_NEW, |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * Path to the peer not known yet. | 54 | * No path to the peer known yet. |
55 | */ | 55 | */ |
56 | CADET_TUNNEL_SEARCHING, | 56 | CADET_TUNNEL_SEARCHING, |
57 | 57 | ||
@@ -312,6 +312,16 @@ struct CadetConnection * | |||
312 | GCT_use_path (struct CadetTunnel *t, struct CadetPeerPath *p); | 312 | GCT_use_path (struct CadetTunnel *t, struct CadetPeerPath *p); |
313 | 313 | ||
314 | /** | 314 | /** |
315 | * Count all created connections of a tunnel. Not necessarily ready connections! | ||
316 | * | ||
317 | * @param t Tunnel on which to count. | ||
318 | * | ||
319 | * @return Number of connections created, either being established or ready. | ||
320 | */ | ||
321 | unsigned int | ||
322 | GCT_count_any_connections (struct CadetTunnel *t); | ||
323 | |||
324 | /** | ||
315 | * Count established (ready) connections of a tunnel. | 325 | * Count established (ready) connections of a tunnel. |
316 | * | 326 | * |
317 | * @param t Tunnel on which to count. | 327 | * @param t Tunnel on which to count. |