diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-01-30 02:11:20 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-01-30 02:11:20 +0000 |
commit | ff21154a0805872ee6dbedb82d2fd64e1a7ed1ac (patch) | |
tree | 5370668a8eda5dcc92abbcaa39a2bbbe8de348e3 /src/mesh/gnunet-service-mesh_local.c | |
parent | 100eeaebcba97bcea73ff4a29e4a55d068a46e15 (diff) | |
download | gnunet-ff21154a0805872ee6dbedb82d2fd64e1a7ed1ac.tar.gz gnunet-ff21154a0805872ee6dbedb82d2fd64e1a7ed1ac.zip |
- document tunnel internal API
- change iterator parameter order
Diffstat (limited to 'src/mesh/gnunet-service-mesh_local.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_local.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c index a02ef84c8..b1f974b41 100644 --- a/src/mesh/gnunet-service-mesh_local.c +++ b/src/mesh/gnunet-service-mesh_local.c | |||
@@ -589,7 +589,7 @@ handle_ack (void *cls, struct GNUNET_SERVER_Client *client, | |||
589 | * @return #GNUNET_YES, to keep iterating. | 589 | * @return #GNUNET_YES, to keep iterating. |
590 | */ | 590 | */ |
591 | static int | 591 | static int |
592 | monitor_all_tunnels_iterator (void *cls, | 592 | get_all_tunnels_iterator (void *cls, |
593 | const struct GNUNET_PeerIdentity * peer, | 593 | const struct GNUNET_PeerIdentity * peer, |
594 | void *value) | 594 | void *value) |
595 | { | 595 | { |
@@ -640,7 +640,7 @@ handle_get_tunnels (void *cls, struct GNUNET_SERVER_Client *client, | |||
640 | "Received get tunnels request from client %u (%p)\n", | 640 | "Received get tunnels request from client %u (%p)\n", |
641 | c->id, client); | 641 | c->id, client); |
642 | 642 | ||
643 | GMT_iterate_all (client, monitor_all_tunnels_iterator); | 643 | GMT_iterate_all (get_all_tunnels_iterator, client); |
644 | reply.size = htons (sizeof (reply)); | 644 | reply.size = htons (sizeof (reply)); |
645 | reply.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS); | 645 | reply.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS); |
646 | GNUNET_SERVER_notification_context_unicast (nc, client, &reply, GNUNET_NO); | 646 | GNUNET_SERVER_notification_context_unicast (nc, client, &reply, GNUNET_NO); |