diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-09 12:30:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-09 12:30:54 +0000 |
commit | a1d7926951beb7466a1462e43b9933530e5825f7 (patch) | |
tree | 0ae15b2f388a1a9a0a45f95903b2e0b78513c19a /src/testbed/testbed_api_testbed.c | |
parent | 495ebe5987dbf7562d55e9d6a5751d78ae35ffc2 (diff) | |
download | gnunet-a1d7926951beb7466a1462e43b9933530e5825f7.tar.gz gnunet-a1d7926951beb7466a1462e43b9933530e5825f7.zip |
-adding continuation to testbed peer start/stop API
Diffstat (limited to 'src/testbed/testbed_api_testbed.c')
-rw-r--r-- | src/testbed/testbed_api_testbed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c index bc89638a4..9a97dec26 100644 --- a/src/testbed/testbed_api_testbed.c +++ b/src/testbed/testbed_api_testbed.c | |||
@@ -199,7 +199,7 @@ start_peers_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
199 | for (peer = 0; peer < rc->num_peers; peer++) | 199 | for (peer = 0; peer < rc->num_peers; peer++) |
200 | { | 200 | { |
201 | dll_op = GNUNET_malloc (sizeof (struct DLLOperation)); | 201 | dll_op = GNUNET_malloc (sizeof (struct DLLOperation)); |
202 | dll_op->op = GNUNET_TESTBED_peer_start (rc->peers[peer]); | 202 | dll_op->op = GNUNET_TESTBED_peer_start (rc->peers[peer], NULL, NULL); |
203 | dll_op->cls = rc->peers[peer]; | 203 | dll_op->cls = rc->peers[peer]; |
204 | GNUNET_CONTAINER_DLL_insert_tail (rc->dll_op_head, rc->dll_op_tail, dll_op); | 204 | GNUNET_CONTAINER_DLL_insert_tail (rc->dll_op_head, rc->dll_op_tail, dll_op); |
205 | } | 205 | } |
@@ -436,7 +436,7 @@ shutdown_run_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
436 | continue; | 436 | continue; |
437 | } | 437 | } |
438 | dll_op = GNUNET_malloc (sizeof (struct DLLOperation)); | 438 | dll_op = GNUNET_malloc (sizeof (struct DLLOperation)); |
439 | dll_op->op = GNUNET_TESTBED_peer_stop (rc->peers[peer]); | 439 | dll_op->op = GNUNET_TESTBED_peer_stop (rc->peers[peer], NULL, NULL); |
440 | dll_op->cls = rc->peers[peer]; | 440 | dll_op->cls = rc->peers[peer]; |
441 | GNUNET_CONTAINER_DLL_insert_tail (rc->dll_op_head, rc->dll_op_tail, | 441 | GNUNET_CONTAINER_DLL_insert_tail (rc->dll_op_head, rc->dll_op_tail, |
442 | dll_op); | 442 | dll_op); |