aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api_iterate_peers.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-11-05 18:21:50 +0000
committerNathan S. Evans <evans@in.tum.de>2010-11-05 18:21:50 +0000
commit75a33a1499cf60ea4364c9aa673816629a6c1413 (patch)
tree0620da4312bb04de4d7b65074fdd3b0c3dd6cc0e /src/core/core_api_iterate_peers.c
parent7217c601ad30760872823193d62307e7a335d226 (diff)
downloadgnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.tar.gz
gnunet-75a33a1499cf60ea4364c9aa673816629a6c1413.zip
big scheduler refactoring, expect some issues
Diffstat (limited to 'src/core/core_api_iterate_peers.c')
-rw-r--r--src/core/core_api_iterate_peers.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/core_api_iterate_peers.c b/src/core/core_api_iterate_peers.c
index 08cb9797c..aeef67f88 100644
--- a/src/core/core_api_iterate_peers.c
+++ b/src/core/core_api_iterate_peers.c
@@ -134,22 +134,20 @@ transmit_request(void *cls,
134/** 134/**
135 * Obtain statistics and/or change preferences for the given peer. 135 * Obtain statistics and/or change preferences for the given peer.
136 * 136 *
137 * @param sched scheduler to use
138 * @param cfg configuration to use 137 * @param cfg configuration to use
139 * @param peer_cb function to call with the peer information 138 * @param peer_cb function to call with the peer information
140 * @param cb_cls closure for peer_cb 139 * @param cb_cls closure for peer_cb
141 * @return GNUNET_OK if iterating, GNUNET_SYSERR on error 140 * @return GNUNET_OK if iterating, GNUNET_SYSERR on error
142 */ 141 */
143int 142int
144GNUNET_CORE_iterate_peers (struct GNUNET_SCHEDULER_Handle *sched, 143GNUNET_CORE_iterate_peers (const struct GNUNET_CONFIGURATION_Handle *cfg,
145 const struct GNUNET_CONFIGURATION_Handle *cfg,
146 GNUNET_CORE_ConnectEventHandler peer_cb, 144 GNUNET_CORE_ConnectEventHandler peer_cb,
147 void *cb_cls) 145 void *cb_cls)
148{ 146{
149 struct GNUNET_CORE_RequestContext *request_context; 147 struct GNUNET_CORE_RequestContext *request_context;
150 struct GNUNET_CLIENT_Connection *client; 148 struct GNUNET_CLIENT_Connection *client;
151 149
152 client = GNUNET_CLIENT_connect (sched, "core", cfg); 150 client = GNUNET_CLIENT_connect ("core", cfg);
153 if (client == NULL) 151 if (client == NULL)
154 return GNUNET_SYSERR; 152 return GNUNET_SYSERR;
155 request_context = GNUNET_malloc (sizeof (struct GNUNET_CORE_RequestContext)); 153 request_context = GNUNET_malloc (sizeof (struct GNUNET_CORE_RequestContext));