aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testbed_service.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-04-02 16:54:35 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-04-02 16:54:35 +0000
commit8eb1702f2a5944ebdccae9d9e37b58e6fec290cc (patch)
treef67caa35a36afaf61ca7e57f0f816e26f2132712 /src/include/gnunet_testbed_service.h
parent68eb732cc6e17c765a00eb6841130b0e3b9de9b3 (diff)
downloadgnunet-8eb1702f2a5944ebdccae9d9e37b58e6fec290cc.tar.gz
gnunet-8eb1702f2a5944ebdccae9d9e37b58e6fec290cc.zip
- test case for starting/stopping peer's services
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r--src/include/gnunet_testbed_service.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/gnunet_testbed_service.h b/src/include/gnunet_testbed_service.h
index 5aa4bd727..522484821 100644
--- a/src/include/gnunet_testbed_service.h
+++ b/src/include/gnunet_testbed_service.h
@@ -882,6 +882,30 @@ GNUNET_TESTBED_peer_destroy (struct GNUNET_TESTBED_Peer *peer);
882 882
883 883
884/** 884/**
885 * Start or stop given service at a peer. This should not be called to
886 * start/stop the peer's ARM service. Use GNUNET_TESTBED_peer_start(),
887 * GNUNET_TESTBED_peer_stop() for starting/stopping peer's ARM service. Success
888 * or failure of the generated operation is signalled through the controller
889 * event callback and/or operation completion callback.
890 *
891 * @param op_cls the closure for the operation
892 * @param peer the peer whose service is to be started/stopped
893 * @param service_name the name of the service
894 * @param cb the operation completion callback
895 * @param cb_cls the closure for the operation completion callback
896 * @param start 1 to start the service; 0 to stop the service
897 * @return an operation handle; NULL upon error (peer not running)
898 */
899struct GNUNET_TESTBED_Operation *
900GNUNET_TESTBED_peer_manage_service (void *op_cls,
901 struct GNUNET_TESTBED_Peer *peer,
902 const char *service_name,
903 GNUNET_TESTBED_OperationCompletionCallback cb,
904 void *cb_cls,
905 unsigned int start);
906
907
908/**
885 * Stops and destroys all peers. Is equivalent of calling 909 * Stops and destroys all peers. Is equivalent of calling
886 * GNUNET_TESTBED_peer_stop() and GNUNET_TESTBED_peer_destroy() on all peers, 910 * GNUNET_TESTBED_peer_stop() and GNUNET_TESTBED_peer_destroy() on all peers,
887 * except that the peer stop event and operation finished event corresponding to 911 * except that the peer stop event and operation finished event corresponding to