diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-06 20:55:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-06 20:55:28 +0000 |
commit | 61c39c60565b386e0e12ea669556b030e8cd7180 (patch) | |
tree | 59109aeab8297bdc996faca8c4e38ec7426c36cf /src/include/gnunet_testing_lib.h | |
parent | 780eb09dd8040ecf8649d40ddf8314464e0fc48e (diff) | |
download | gnunet-61c39c60565b386e0e12ea669556b030e8cd7180.tar.gz gnunet-61c39c60565b386e0e12ea669556b030e8cd7180.zip |
-remove trailing whitespace
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r-- | src/include/gnunet_testing_lib.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index f182d8df5..3f5b260eb 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h | |||
@@ -46,7 +46,7 @@ extern "C" | |||
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | /** | 48 | /** |
49 | * Size of each hostkey in the hostkey file (in BYTES). | 49 | * Size of each hostkey in the hostkey file (in BYTES). |
50 | */ | 50 | */ |
51 | #define GNUNET_TESTING_HOSTKEYFILESIZE sizeof (struct GNUNET_CRYPTO_EccPrivateKey) | 51 | #define GNUNET_TESTING_HOSTKEYFILESIZE sizeof (struct GNUNET_CRYPTO_EccPrivateKey) |
52 | 52 | ||
@@ -138,7 +138,7 @@ struct GNUNET_TESTING_System * | |||
138 | GNUNET_TESTING_system_create_with_portrange (const char *testdir, | 138 | GNUNET_TESTING_system_create_with_portrange (const char *testdir, |
139 | const char *trusted_ip, | 139 | const char *trusted_ip, |
140 | const char *hostname, | 140 | const char *hostname, |
141 | const struct | 141 | const struct |
142 | GNUNET_TESTING_SharedService * | 142 | GNUNET_TESTING_SharedService * |
143 | shared_services, | 143 | shared_services, |
144 | uint16_t lowport, | 144 | uint16_t lowport, |
@@ -162,7 +162,7 @@ GNUNET_TESTING_system_destroy (struct GNUNET_TESTING_System *system, | |||
162 | * faster peer startup. This function can be used to | 162 | * faster peer startup. This function can be used to |
163 | * access the n-th key of those pre-created hostkeys; note | 163 | * access the n-th key of those pre-created hostkeys; note |
164 | * that these keys are ONLY useful for testing and not | 164 | * that these keys are ONLY useful for testing and not |
165 | * secure as the private keys are part of the public | 165 | * secure as the private keys are part of the public |
166 | * GNUnet source code. | 166 | * GNUnet source code. |
167 | * | 167 | * |
168 | * This is primarily a helper function used internally | 168 | * This is primarily a helper function used internally |
@@ -186,7 +186,7 @@ GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system, | |||
186 | * @param system system to use for reservation tracking | 186 | * @param system system to use for reservation tracking |
187 | * @return 0 if no free port was available | 187 | * @return 0 if no free port was available |
188 | */ | 188 | */ |
189 | uint16_t | 189 | uint16_t |
190 | GNUNET_TESTING_reserve_port (struct GNUNET_TESTING_System *system); | 190 | GNUNET_TESTING_reserve_port (struct GNUNET_TESTING_System *system); |
191 | 191 | ||
192 | 192 | ||
@@ -226,14 +226,14 @@ GNUNET_TESTING_configuration_create (struct GNUNET_TESTING_System *system, | |||
226 | 226 | ||
227 | /** | 227 | /** |
228 | * Configure a GNUnet peer. GNUnet must be installed on the local | 228 | * Configure a GNUnet peer. GNUnet must be installed on the local |
229 | * system and available in the PATH. | 229 | * system and available in the PATH. |
230 | * | 230 | * |
231 | * @param system system to use to coordinate resource usage | 231 | * @param system system to use to coordinate resource usage |
232 | * @param cfg configuration to use; will be UPDATED (to reflect needed | 232 | * @param cfg configuration to use; will be UPDATED (to reflect needed |
233 | * changes in port numbers and paths) | 233 | * changes in port numbers and paths) |
234 | * @param key_number number of the hostkey to use for the peer | 234 | * @param key_number number of the hostkey to use for the peer |
235 | * @param id identifier for the daemon, will be set, can be NULL | 235 | * @param id identifier for the daemon, will be set, can be NULL |
236 | * @param emsg set to freshly allocated error message (set to NULL on success), | 236 | * @param emsg set to freshly allocated error message (set to NULL on success), |
237 | * can be NULL | 237 | * can be NULL |
238 | * @return handle to the peer, NULL on error | 238 | * @return handle to the peer, NULL on error |
239 | */ | 239 | */ |
@@ -257,7 +257,7 @@ GNUNET_TESTING_peer_get_identity (struct GNUNET_TESTING_Peer *peer, | |||
257 | 257 | ||
258 | 258 | ||
259 | /** | 259 | /** |
260 | * Start the peer. | 260 | * Start the peer. |
261 | * | 261 | * |
262 | * @param peer peer to start | 262 | * @param peer peer to start |
263 | * @return GNUNET_OK on success, GNUNET_SYSERR on error (i.e. peer already running) | 263 | * @return GNUNET_OK on success, GNUNET_SYSERR on error (i.e. peer already running) |
@@ -319,7 +319,7 @@ GNUNET_TESTING_peer_wait (struct GNUNET_TESTING_Peer *peer); | |||
319 | * @param success GNUNET_YES if the peer is stopped; GNUNET_SYSERR upon any | 319 | * @param success GNUNET_YES if the peer is stopped; GNUNET_SYSERR upon any |
320 | * error | 320 | * error |
321 | */ | 321 | */ |
322 | typedef void (*GNUNET_TESTING_PeerStopCallback) (void *cls, | 322 | typedef void (*GNUNET_TESTING_PeerStopCallback) (void *cls, |
323 | struct GNUNET_TESTING_Peer * | 323 | struct GNUNET_TESTING_Peer * |
324 | peer, | 324 | peer, |
325 | int success); | 325 | int success); |
@@ -358,7 +358,7 @@ GNUNET_TESTING_peer_stop_async_cancel (struct GNUNET_TESTING_Peer *peer); | |||
358 | /** | 358 | /** |
359 | * Signature of the 'main' function for a (single-peer) testcase that | 359 | * Signature of the 'main' function for a (single-peer) testcase that |
360 | * is run using 'GNUNET_TESTING_peer_run'. | 360 | * is run using 'GNUNET_TESTING_peer_run'. |
361 | * | 361 | * |
362 | * @param cls closure | 362 | * @param cls closure |
363 | * @param cfg configuration of the peer that was started | 363 | * @param cfg configuration of the peer that was started |
364 | * @param peer identity of the peer that was created | 364 | * @param peer identity of the peer that was created |
@@ -424,14 +424,14 @@ GNUNET_TESTING_service_run (const char *testdir, | |||
424 | * Sometimes we use the binary name to determine which specific | 424 | * Sometimes we use the binary name to determine which specific |
425 | * test to run. In those cases, the string after the last "_" | 425 | * test to run. In those cases, the string after the last "_" |
426 | * in 'argv[0]' specifies a string that determines the configuration | 426 | * in 'argv[0]' specifies a string that determines the configuration |
427 | * file or plugin to use. | 427 | * file or plugin to use. |
428 | * | 428 | * |
429 | * This function returns the respective substring, taking care | 429 | * This function returns the respective substring, taking care |
430 | * of issues such as binaries ending in '.exe' on W32. | 430 | * of issues such as binaries ending in '.exe' on W32. |
431 | * | 431 | * |
432 | * @param argv0 the name of the binary | 432 | * @param argv0 the name of the binary |
433 | * @return string between the last '_' and the '.exe' (or the end of the string), | 433 | * @return string between the last '_' and the '.exe' (or the end of the string), |
434 | * NULL if argv0 has no '_' | 434 | * NULL if argv0 has no '_' |
435 | */ | 435 | */ |
436 | char * | 436 | char * |
437 | GNUNET_TESTING_get_testname_from_underscore (const char *argv0); | 437 | GNUNET_TESTING_get_testname_from_underscore (const char *argv0); |