diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-04-26 13:56:39 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-04-26 13:56:39 +0000 |
commit | 4868c316f36cbefb52e7823b7852a20373389a68 (patch) | |
tree | 31d67c39663d0b5762a168493c08a82e32493c16 /src/include/gnunet_testing_lib.h | |
parent | c589835426fadcab0fff0a3cfca73f09279343d7 (diff) | |
download | gnunet-4868c316f36cbefb52e7823b7852a20373389a68.tar.gz gnunet-4868c316f36cbefb52e7823b7852a20373389a68.zip |
changes so things compile
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r-- | src/include/gnunet_testing_lib.h | 65 |
1 files changed, 54 insertions, 11 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index b9306dae7..4688781cd 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h | |||
@@ -75,8 +75,61 @@ struct GNUNET_TESTING_Testbed; | |||
75 | /** | 75 | /** |
76 | * Phases of starting GNUnet on a system. | 76 | * Phases of starting GNUnet on a system. |
77 | */ | 77 | */ |
78 | enum GNUNET_TESTING_StartPhase; | 78 | enum GNUNET_TESTING_StartPhase |
79 | { | ||
80 | /** | ||
81 | * Copy the configuration file to the target system. | ||
82 | */ | ||
83 | SP_COPYING, | ||
84 | |||
85 | /** | ||
86 | * Configuration file has been copied, start ARM on target system. | ||
87 | */ | ||
88 | SP_COPIED, | ||
89 | |||
90 | /** | ||
91 | * ARM has been started, check that it has properly daemonized and | ||
92 | * then try to connect to the CORE service (which should be | ||
93 | * auto-started by ARM). | ||
94 | */ | ||
95 | SP_START_ARMING, | ||
96 | |||
97 | /** | ||
98 | * We're waiting for CORE to start. | ||
99 | */ | ||
100 | SP_START_CORE, | ||
101 | |||
102 | /** | ||
103 | * Core has notified us that we've established a connection to the service. | ||
104 | * The main FSM halts here and waits to be moved to UPDATE or CLEANUP. | ||
105 | */ | ||
106 | SP_START_DONE, | ||
79 | 107 | ||
108 | /** | ||
109 | * We've been asked to terminate the instance and are now waiting for | ||
110 | * the remote command to stop the gnunet-arm process and delete temporary | ||
111 | * files. | ||
112 | */ | ||
113 | SP_SHUTDOWN_START, | ||
114 | |||
115 | /** | ||
116 | * We've received a configuration update and are currently waiting for | ||
117 | * the copy process for the update to complete. Once it is, we will | ||
118 | * return to "SP_START_DONE" (and rely on ARM to restart all affected | ||
119 | * services). | ||
120 | */ | ||
121 | SP_CONFIG_UPDATE | ||
122 | }; | ||
123 | |||
124 | /** | ||
125 | * Prototype of a function that will be called when a | ||
126 | * particular operation was completed the testing library. | ||
127 | * | ||
128 | * @param cls closure | ||
129 | * @param emsg NULL on success | ||
130 | */ | ||
131 | typedef void (*GNUNET_TESTING_NotifyCompletion)(void *cls, | ||
132 | const char *emsg); | ||
80 | 133 | ||
81 | /** | 134 | /** |
82 | * Handle for a GNUnet daemon (technically a set of | 135 | * Handle for a GNUnet daemon (technically a set of |
@@ -249,16 +302,6 @@ GNUNET_TESTING_daemon_start (struct GNUNET_SCHEDULER_Handle *sched, | |||
249 | struct GNUNET_TESTING_Daemon * | 302 | struct GNUNET_TESTING_Daemon * |
250 | GNUNET_TESTING_daemon_get (struct GNUNET_TESTING_PeerGroup *pg, unsigned int position); | 303 | GNUNET_TESTING_daemon_get (struct GNUNET_TESTING_PeerGroup *pg, unsigned int position); |
251 | 304 | ||
252 | /** | ||
253 | * Prototype of a function that will be called when a | ||
254 | * particular operation was completed the testing library. | ||
255 | * | ||
256 | * @param cls closure | ||
257 | * @param emsg NULL on success | ||
258 | */ | ||
259 | typedef void (*GNUNET_TESTING_NotifyCompletion)(void *cls, | ||
260 | const char *emsg); | ||
261 | |||
262 | 305 | ||
263 | /** | 306 | /** |
264 | * Stops a GNUnet daemon. | 307 | * Stops a GNUnet daemon. |