aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r--src/transport/transport-testing.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h
index b78d11dbe..4be451d35 100644
--- a/src/transport/transport-testing.h
+++ b/src/transport/transport-testing.h
@@ -140,11 +140,16 @@ struct GNUNET_TRANSPORT_TESTING_PeerContext
140 struct GNUNET_HELLO_Message *hello; 140 struct GNUNET_HELLO_Message *hello;
141 141
142 /** 142 /**
143 * Closure for the callbacks 143 * Closure for the @a nc and @a nd callbacks
144 */ 144 */
145 void *cb_cls; 145 void *cb_cls;
146 146
147 /** 147 /**
148 * Closure for @e start_cb.
149 */
150 void *start_cb_cls;
151
152 /**
148 * An unique number to identify the peer 153 * An unique number to identify the peer
149 */ 154 */
150 unsigned int no; 155 unsigned int no;
@@ -266,8 +271,9 @@ GNUNET_TRANSPORT_TESTING_done (struct GNUNET_TRANSPORT_TESTING_Handle *tth);
266 * @param rec receive callback 271 * @param rec receive callback
267 * @param nc connect callback 272 * @param nc connect callback
268 * @param nd disconnect callback 273 * @param nd disconnect callback
274 * @param cb_cls closure for @a nc and @a nd callback
269 * @param start_cb start callback 275 * @param start_cb start callback
270 * @param cb_cls closure for callback 276 * @param start_cb_cls closure for @a start_cb
271 * @return the peer context 277 * @return the peer context
272 */ 278 */
273struct GNUNET_TRANSPORT_TESTING_PeerContext * 279struct GNUNET_TRANSPORT_TESTING_PeerContext *
@@ -277,8 +283,9 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct GNUNET_TRANSPORT_TESTING_Handle *tth
277 GNUNET_TRANSPORT_ReceiveCallback rec, 283 GNUNET_TRANSPORT_ReceiveCallback rec,
278 GNUNET_TRANSPORT_NotifyConnect nc, 284 GNUNET_TRANSPORT_NotifyConnect nc,
279 GNUNET_TRANSPORT_NotifyDisconnect nd, 285 GNUNET_TRANSPORT_NotifyDisconnect nd,
286 void *cb_cls,
280 GNUNET_TRANSPORT_TESTING_StartCallback start_cb, 287 GNUNET_TRANSPORT_TESTING_StartCallback start_cb,
281 void *cb_cls); 288 void *start_cb_cls);
282 289
283 290
284/** 291/**
@@ -295,13 +302,13 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_PeerContext
295 * 302 *
296 * @param p the peer 303 * @param p the peer
297 * @param restart_cb restart callback 304 * @param restart_cb restart callback
298 * @param cb_cls callback closure 305 * @param restart_cb_cls callback closure
299 * @return #GNUNET_OK in success otherwise #GNUNET_SYSERR 306 * @return #GNUNET_OK in success otherwise #GNUNET_SYSERR
300 */ 307 */
301int 308int
302GNUNET_TRANSPORT_TESTING_restart_peer (struct GNUNET_TRANSPORT_TESTING_PeerContext *p, 309GNUNET_TRANSPORT_TESTING_restart_peer (struct GNUNET_TRANSPORT_TESTING_PeerContext *p,
303 GNUNET_TRANSPORT_TESTING_StartCallback restart_cb, 310 GNUNET_TRANSPORT_TESTING_StartCallback restart_cb,
304 void *cb_cls); 311 void *restart_cb_cls);
305 312
306 313
307 314