gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8793 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r8793 - gnunet/src/include
Date: Sun, 26 Jul 2009 15:28:36 -0600

Author: grothoff
Date: 2009-07-26 15:28:36 -0600 (Sun, 26 Jul 2009)
New Revision: 8793

Modified:
   gnunet/src/include/gnunet_testing_lib.h
Log:
fixes

Modified: gnunet/src/include/gnunet_testing_lib.h
===================================================================
--- gnunet/src/include/gnunet_testing_lib.h     2009-07-26 21:25:54 UTC (rev 
8792)
+++ gnunet/src/include/gnunet_testing_lib.h     2009-07-26 21:28:36 UTC (rev 
8793)
@@ -151,7 +151,14 @@
                                     void *cb_cls);
 
 
+
 /**
+ * Handle to a group of GNUnet peers.
+ */
+struct GNUNET_TESTING_PeerGroup;
+
+
+/**
  * Start count gnunetd processes with the same set of transports and
  * applications.  The port numbers (any option called "PORT") will be
  * adjusted to ensure that no two peers running on the same system
@@ -169,8 +176,9 @@
  * @param va Additional hosts can be specified using a NULL-terminated list of
  *        varargs, hosts will then be used round-robin from that
  *        list; va only contains anything if hostname != NULL.
+ * @return NULL on error, otherwise handle to control peer group
  */
-void
+struct GNUNET_TESTING_PeerGroup *
 GNUNET_TESTING_daemons_start_va (struct GNUNET_SCHEDULER_Handle *sched,
                                 const struct GNUNET_CONFIGURATION_Handle *cfg,
                                 unsigned int total,
@@ -189,9 +197,6 @@
  * times for the first peer).
  *
  * @param total number of daemons to start
- * @param service_home_prefix path to use as the prefix for the home of the 
services
- * @param transports which transports should all peers use
- * @param applications which applications should be used?
  * @param timeout how long is this allowed to take?
  * @param cb function to call on each daemon that was started
  * @param cb_cls closure for cb
@@ -202,14 +207,12 @@
  *        hosts can be specified using a NULL-terminated list of
  *        varargs, hosts will then be used round-robin from that
  *        list.
+ * @return NULL on error, otherwise handle to control peer group
  */
-void
+struct GNUNET_TESTING_PeerGroup *
 GNUNET_TESTING_daemons_start (struct GNUNET_SCHEDULER_Handle *sched,
                              struct GNUNET_CONFIGURATION_Handle *cfg,
                              unsigned int total,
-                             const char *service_home_prefix,
-                             const char *transports,
-                             const char *applications,
                              GNUNET_TESTING_NotifyDaemonRunning cb,
                              void *cb_cls,
                              GNUNET_TESTING_NotifyCompletion cbe,
@@ -218,11 +221,22 @@
                              ...);
 
 
+
 /**
+ * Shutdown all peers started in the given group.
+ * 
+ * @param pg handle to the peer group
+ */
+void
+GNUNET_TESTING_daemons_stop (struct GNUNET_TESTING_PeerGroup *pg);
+
+
+/**
  * Handle to an entire testbed of GNUnet peers.
  */
 struct GNUNET_TESTING_Testbed;
 
+
 /**
  * Prototype of a function that will be called when 
  * a testbed is being created.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]