aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-03-08 10:22:39 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-03-08 10:22:39 +0000
commite8873dc5416be83562492309893b6eb30b30af8f (patch)
tree9506ead80f4bcc2f07a5d4b6bfeca1efe537db83 /src/include/gnunet_testbed_service.h
parentf595a871501f64fd0fb2b8da59f8d2397131f525 (diff)
downloadgnunet-e8873dc5416be83562492309893b6eb30b30af8f.tar.gz
gnunet-e8873dc5416be83562492309893b6eb30b30af8f.zip
testbed API function to shutdown (stop + destroy) all peers. Client side
functionality only.
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r--src/include/gnunet_testbed_service.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h
index 4ffcde76f..1dbba8fa2 100644
--- a/src/include/gnunet_testbed_service.h
+++ b/src/include/gnunet_testbed_service.h
@@ -912,6 +912,29 @@ GNUNET_TESTBED_peer_destroy (struct GNUNET_TESTBED_Peer *peer);
912 912
913 913
914/** 914/**
915 * Stops and destroys all peers. Is equivalent of calling
916 * GNUNET_TESTBED_peer_stop() and GNUNET_TESTBED_peer_destroy() on all peers,
917 * except that the peer stop event and operation finished event corresponding to
918 * the respective functions are not generated. This function should be called
919 * when there are no other pending operations. If there are pending operations,
920 * it will return NULL
921 *
922 * @param controller the controller to send this message to
923 * @param op_cls closure for the operation
924 * @param cb the callback to call when all peers are stopped and destroyed
925 * @param cb_cls the closure for the callback
926 * @return operation handle on success; NULL if any pending operations are
927 * present
928 */
929struct GNUNET_TESTBED_Operation *
930GNUNET_TESTBED_shutdown_peers (struct GNUNET_TESTBED_Controller *controller,
931 void *op_cls,
932 GNUNET_TESTBED_OperationCompletionCallback cb,
933 void *cb_cls);
934
935
936
937/**
915 * Options for peer connections. 938 * Options for peer connections.
916 */ 939 */
917enum GNUNET_TESTBED_ConnectOption 940enum GNUNET_TESTBED_ConnectOption