diff options
Diffstat (limited to 'src/include/gnunet_testbed_service.h')
-rw-r--r-- | src/include/gnunet_testbed_service.h | 24 |
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 | */ | ||
899 | struct GNUNET_TESTBED_Operation * | ||
900 | GNUNET_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 |