diff options
Diffstat (limited to 'src/testbed/testbed_api_peers.c')
-rw-r--r-- | src/testbed/testbed_api_peers.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/testbed/testbed_api_peers.c b/src/testbed/testbed_api_peers.c index 619212def..86bc6f2e2 100644 --- a/src/testbed/testbed_api_peers.c +++ b/src/testbed/testbed_api_peers.c | |||
@@ -483,13 +483,18 @@ GNUNET_TESTBED_peer_create (struct GNUNET_TESTBED_Controller *controller, | |||
483 | * Start the given peer. | 483 | * Start the given peer. |
484 | * | 484 | * |
485 | * @param peer peer to start | 485 | * @param peer peer to start |
486 | * @param pcc function to call upon completion | ||
487 | * @param pcc_cls closure for 'pcc' | ||
486 | * @return handle to the operation | 488 | * @return handle to the operation |
487 | */ | 489 | */ |
488 | struct GNUNET_TESTBED_Operation * | 490 | struct GNUNET_TESTBED_Operation * |
489 | GNUNET_TESTBED_peer_start (struct GNUNET_TESTBED_Peer *peer) | 491 | GNUNET_TESTBED_peer_start (struct GNUNET_TESTBED_Peer *peer, |
492 | GNUNET_TESTBED_PeerChurnCallback pcc, | ||
493 | void *pcc_cls) | ||
490 | { | 494 | { |
491 | struct OperationContext *opc; | 495 | struct OperationContext *opc; |
492 | 496 | ||
497 | // FIXME: keep and call pcc! | ||
493 | opc = GNUNET_malloc (sizeof (struct OperationContext)); | 498 | opc = GNUNET_malloc (sizeof (struct OperationContext)); |
494 | opc->c = peer->controller; | 499 | opc->c = peer->controller; |
495 | opc->data = peer; | 500 | opc->data = peer; |
@@ -510,13 +515,18 @@ GNUNET_TESTBED_peer_start (struct GNUNET_TESTBED_Peer *peer) | |||
510 | * state of the peer). | 515 | * state of the peer). |
511 | * | 516 | * |
512 | * @param peer peer to stop | 517 | * @param peer peer to stop |
518 | * @param pcc function to call upon completion | ||
519 | * @param pcc_cls closure for 'pcc' | ||
513 | * @return handle to the operation | 520 | * @return handle to the operation |
514 | */ | 521 | */ |
515 | struct GNUNET_TESTBED_Operation * | 522 | struct GNUNET_TESTBED_Operation * |
516 | GNUNET_TESTBED_peer_stop (struct GNUNET_TESTBED_Peer *peer) | 523 | GNUNET_TESTBED_peer_stop (struct GNUNET_TESTBED_Peer *peer, |
524 | GNUNET_TESTBED_PeerChurnCallback pcc, | ||
525 | void *pcc_cls) | ||
517 | { | 526 | { |
518 | struct OperationContext *opc; | 527 | struct OperationContext *opc; |
519 | 528 | ||
529 | // FIXME: keep and call pcc! | ||
520 | opc = GNUNET_malloc (sizeof (struct OperationContext)); | 530 | opc = GNUNET_malloc (sizeof (struct OperationContext)); |
521 | opc->c = peer->controller; | 531 | opc->c = peer->controller; |
522 | opc->data = peer; | 532 | opc->data = peer; |