[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8807 - gnunet/src/testing
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8807 - gnunet/src/testing |
Date: |
Mon, 27 Jul 2009 15:28:58 -0600 |
Author: grothoff
Date: 2009-07-27 15:28:58 -0600 (Mon, 27 Jul 2009)
New Revision: 8807
Modified:
gnunet/src/testing/testing_group.c
Log:
drft
Modified: gnunet/src/testing/testing_group.c
===================================================================
--- gnunet/src/testing/testing_group.c 2009-07-27 21:12:05 UTC (rev 8806)
+++ gnunet/src/testing/testing_group.c 2009-07-27 21:28:58 UTC (rev 8807)
@@ -33,6 +33,41 @@
*/
struct GNUNET_TESTING_PeerGroup
{
+ /**
+ * Our scheduler.
+ */
+ struct GNUNET_SCHEDULER_Handle *sched;
+
+ /**
+ * Configuration template.
+ */
+ struct GNUNET_CONFIGURATION_Handle *cfg;
+
+ /**
+ * Function to call on each started daemon.
+ */
+ GNUNET_TESTING_NotifyDaemonRunning cb;
+
+ /**
+ * Closure for cb.
+ */
+ void *cb_cls;
+
+ /**
+ * NULL-terminated array of hostnames.
+ */
+ char **hostnames;
+
+ /**
+ * Array of "total" peers.
+ */
+ struct GNUNET_TESTING_Daemon **peers;
+
+ /**
+ * Number of peers in this group.
+ */
+ unsigned int total;
+
};
@@ -63,7 +98,10 @@
const char *hostname,
va_list va)
{
- return NULL;
+ struct GNUNET_TESTING_PeerGroup *pg;
+
+ pg = GNUNET_malloc (sizeof(struct GNUNET_TESTING_PeerGroup));
+ return pg;
}
@@ -115,8 +153,9 @@
*/
void
GNUNET_TESTING_daemons_stop (struct GNUNET_TESTING_PeerGroup *pg)
-
{
+
+ GNUNET_free (pg);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8807 - gnunet/src/testing,
gnunet <=