diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-01-13 19:33:49 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-01-13 19:33:49 +0000 |
commit | bcc04f0a5babd8283ff50c5dd13e0afccdb2e5f4 (patch) | |
tree | a46bb0a1488ebd5ab8e979a454d767d0d3b3dd49 /src/mesh/gnunet-service-mesh_tunnel.c | |
parent | 1257490cb630ade315a196a724d0233e662afb2c (diff) | |
download | gnunet-bcc04f0a5babd8283ff50c5dd13e0afccdb2e5f4.tar.gz gnunet-bcc04f0a5babd8283ff50c5dd13e0afccdb2e5f4.zip |
- various CLI fixes
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index b8350ca04..7b51106af 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -2660,3 +2660,21 @@ GMT_count_all (void) | |||
2660 | { | 2660 | { |
2661 | return GNUNET_CONTAINER_multipeermap_size (tunnels); | 2661 | return GNUNET_CONTAINER_multipeermap_size (tunnels); |
2662 | } | 2662 | } |
2663 | |||
2664 | void | ||
2665 | GMT_iterate_connections (struct MeshTunnel3 *t, GMT_conn_iter iter, void *cls) | ||
2666 | { | ||
2667 | struct MeshTConnection *ct; | ||
2668 | |||
2669 | for (ct = t->connection_head; NULL != ct; ct = ct->next) | ||
2670 | iter (cls, ct->c); | ||
2671 | } | ||
2672 | |||
2673 | void | ||
2674 | GMT_iterate_channels (struct MeshTunnel3 *t, GMT_chan_iter iter, void *cls) | ||
2675 | { | ||
2676 | struct MeshTChannel *cht; | ||
2677 | |||
2678 | for (cht = t->channel_head; NULL != cht; cht = cht->next) | ||
2679 | iter (cls, cht->ch); | ||
2680 | } | ||