diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-07-30 14:43:32 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-07-30 14:43:32 +0000 |
commit | 8feed578afc70ea0fcd42f9fb4965a0b5b275546 (patch) | |
tree | 3dd9706fb4d8cf46064cd8ad1d2b3984ee5bd8e5 /src/include/gnunet_testing_lib.h | |
parent | 6e2094bba704a47a24b60cfc8656f597b8d17a50 (diff) | |
download | gnunet-8feed578afc70ea0fcd42f9fb4965a0b5b275546.tar.gz gnunet-8feed578afc70ea0fcd42f9fb4965a0b5b275546.zip |
definition of LL
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r-- | src/include/gnunet_testing_lib.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index 0a43980a2..04a2d8191 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h | |||
@@ -50,6 +50,15 @@ extern "C" | |||
50 | struct GNUNET_TESTING_Daemon; | 50 | struct GNUNET_TESTING_Daemon; |
51 | 51 | ||
52 | /** | 52 | /** |
53 | * Linked list of hostnames to use for starting daemons. | ||
54 | */ | ||
55 | struct GNUNET_TESTING_Host | ||
56 | { | ||
57 | struct GNUNET_TESTING_Host *next; | ||
58 | char *hostname; | ||
59 | }; | ||
60 | |||
61 | /** | ||
53 | * Prototype of a function that will be called whenever | 62 | * Prototype of a function that will be called whenever |
54 | * a daemon was started by the testing library. | 63 | * a daemon was started by the testing library. |
55 | * | 64 | * |
@@ -505,8 +514,8 @@ void GNUNET_TESTING_daemons_connect (struct GNUNET_TESTING_Daemon *d1, | |||
505 | * @param cb_cls closure for cb | 514 | * @param cb_cls closure for cb |
506 | * @param connect_callback function to call each time two hosts are connected | 515 | * @param connect_callback function to call each time two hosts are connected |
507 | * @param connect_callback_cls closure for connect_callback | 516 | * @param connect_callback_cls closure for connect_callback |
508 | * @param hostnames space-separated list of hostnames to use; can be NULL (to run | 517 | * @param hostnames linked list of hosts to use to start peers on (NULL to run on localhost only) |
509 | * everything on localhost). | 518 | * |
510 | * @return NULL on error, otherwise handle to control peer group | 519 | * @return NULL on error, otherwise handle to control peer group |
511 | */ | 520 | */ |
512 | struct GNUNET_TESTING_PeerGroup * | 521 | struct GNUNET_TESTING_PeerGroup * |
@@ -520,7 +529,7 @@ GNUNET_TESTING_daemons_start (struct GNUNET_SCHEDULER_Handle *sched, | |||
520 | void *cb_cls, | 529 | void *cb_cls, |
521 | GNUNET_TESTING_NotifyConnection | 530 | GNUNET_TESTING_NotifyConnection |
522 | connect_callback, void *connect_callback_cls, | 531 | connect_callback, void *connect_callback_cls, |
523 | const char *hostnames); | 532 | const struct GNUNET_TESTING_Host *hostnames); |
524 | 533 | ||
525 | /** | 534 | /** |
526 | * Function which continues a peer group starting up | 535 | * Function which continues a peer group starting up |