aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_lib.h
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2011-07-26 18:22:54 +0000
committerNathan S. Evans <evans@in.tum.de>2011-07-26 18:22:54 +0000
commit81eae49a1b5dfeadb9aac5974ec87cd01aed9ffd (patch)
tree35b65462b9209af4bd610552bb485ad22487400e /src/include/gnunet_testing_lib.h
parentbf4a9d8364675b34ac18d505e508006e2b773670 (diff)
downloadgnunet-81eae49a1b5dfeadb9aac5974ec87cd01aed9ffd.tar.gz
gnunet-81eae49a1b5dfeadb9aac5974ec87cd01aed9ffd.zip
start service
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r--src/include/gnunet_testing_lib.h38
1 files changed, 35 insertions, 3 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h
index 0b998cf95..9d85f3af9 100644
--- a/src/include/gnunet_testing_lib.h
+++ b/src/include/gnunet_testing_lib.h
@@ -514,12 +514,27 @@ GNUNET_TESTING_daemon_start_stopped (struct GNUNET_TESTING_Daemon *daemon,
514 void *cb_cls); 514 void *cb_cls);
515 515
516/** 516/**
517 * Stops a GNUnet daemon. 517 * Starts a GNUnet daemon's service.
518 * 518 *
519 * @param d the daemon for which the service should be started 519 * @param d the daemon for which the service should be started
520 * @param service the name of the service to start 520 * @param service the name of the service to start
521 * @param timeout how long to wait for process for shutdown to complete 521 * @param timeout how long to wait for process for startup
522 * @param cb function called once the daemon was stopped 522 * @param cb function called once gnunet-arm returns
523 * @param cb_cls closure for cb
524 */
525void
526GNUNET_TESTING_daemon_start_service (struct GNUNET_TESTING_Daemon *d,
527 char *service,
528 struct GNUNET_TIME_Relative timeout,
529 GNUNET_TESTING_NotifyDaemonRunning cb, void *cb_cls);
530
531/**
532 * Starts a GNUnet daemon's service which has been previously turned off.
533 *
534 * @param d the daemon for which the service should be started
535 * @param service the name of the service to start
536 * @param timeout how long to wait for process for startup
537 * @param cb function called once gnunet-arm returns
523 * @param cb_cls closure for cb 538 * @param cb_cls closure for cb
524 */ 539 */
525void 540void
@@ -759,6 +774,23 @@ GNUNET_TESTING_daemons_churn (struct GNUNET_TESTING_PeerGroup *pg,
759 struct GNUNET_TIME_Relative timeout, 774 struct GNUNET_TIME_Relative timeout,
760 GNUNET_TESTING_NotifyCompletion cb, 775 GNUNET_TESTING_NotifyCompletion cb,
761 void *cb_cls); 776 void *cb_cls);
777/*
778 * Start a given service for each of the peers in the peer group.
779 *
780 * @param pg handle for the peer group
781 * @param service the service to start
782 * @param timeout how long to wait for operations to finish before
783 * giving up
784 * @param cb function to call once finished
785 * @param cb_cls closure for cb
786 *
787 */
788void
789GNUNET_TESTING_daemons_start_service (struct GNUNET_TESTING_PeerGroup *pg,
790 char *service,
791 struct GNUNET_TIME_Relative timeout,
792 GNUNET_TESTING_NotifyCompletion cb,
793 void *cb_cls);
762 794
763/** 795/**
764 * Callback function to process statistic values. 796 * Callback function to process statistic values.