aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_testing_lib.h
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-06-17 15:31:30 +0000
committerNathan S. Evans <evans@in.tum.de>2010-06-17 15:31:30 +0000
commit9e7453c122701571dc25c33100ad608c28847810 (patch)
treecf186b130c0e3139f7dee78d6d6f35aab66da36e /src/include/gnunet_testing_lib.h
parent7f06c82295b46f1c8f1f3b16d5e979abea3e5660 (diff)
downloadgnunet-9e7453c122701571dc25c33100ad608c28847810.tar.gz
gnunet-9e7453c122701571dc25c33100ad608c28847810.zip
api change
Diffstat (limited to 'src/include/gnunet_testing_lib.h')
-rw-r--r--src/include/gnunet_testing_lib.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h
index 74addb443..b564e1e3a 100644
--- a/src/include/gnunet_testing_lib.h
+++ b/src/include/gnunet_testing_lib.h
@@ -337,6 +337,7 @@ struct GNUNET_TESTING_PeerGroup;
337 * @param cls closure 337 * @param cls closure
338 * @param first peer id for first daemon 338 * @param first peer id for first daemon
339 * @param second peer id for the second daemon 339 * @param second peer id for the second daemon
340 * @param distance distance between the connected peers
340 * @param first_cfg config for the first daemon 341 * @param first_cfg config for the first daemon
341 * @param second_cfg config for the second daemon 342 * @param second_cfg config for the second daemon
342 * @param first_daemon handle for the first daemon 343 * @param first_daemon handle for the first daemon
@@ -344,13 +345,14 @@ struct GNUNET_TESTING_PeerGroup;
344 * @param emsg error message (NULL on success) 345 * @param emsg error message (NULL on success)
345 */ 346 */
346typedef void (*GNUNET_TESTING_NotifyConnection)(void *cls, 347typedef void (*GNUNET_TESTING_NotifyConnection)(void *cls,
347 const struct GNUNET_PeerIdentity *first, 348 const struct GNUNET_PeerIdentity *first,
348 const struct GNUNET_PeerIdentity *second, 349 const struct GNUNET_PeerIdentity *second,
349 const struct GNUNET_CONFIGURATION_Handle *first_cfg, 350 uint32_t distance,
350 const struct GNUNET_CONFIGURATION_Handle *second_cfg, 351 const struct GNUNET_CONFIGURATION_Handle *first_cfg,
351 struct GNUNET_TESTING_Daemon *first_daemon, 352 const struct GNUNET_CONFIGURATION_Handle *second_cfg,
352 struct GNUNET_TESTING_Daemon *second_daemon, 353 struct GNUNET_TESTING_Daemon *first_daemon,
353 const char *emsg); 354 struct GNUNET_TESTING_Daemon *second_daemon,
355 const char *emsg);
354 356
355/** 357/**
356 * Starts a GNUnet daemon. GNUnet must be installed on the target 358 * Starts a GNUnet daemon. GNUnet must be installed on the target
@@ -631,6 +633,11 @@ enum GNUNET_TESTING_Topology
631 GNUNET_TESTING_TOPOLOGY_SCALE_FREE, 633 GNUNET_TESTING_TOPOLOGY_SCALE_FREE,
632 634
633 /** 635 /**
636 * Straight line topology.
637 */
638 GNUNET_TESTING_TOPOLOGY_LINE,
639
640 /**
634 * All peers are disconnected. 641 * All peers are disconnected.
635 */ 642 */
636 GNUNET_TESTING_TOPOLOGY_NONE 643 GNUNET_TESTING_TOPOLOGY_NONE