From 9e7453c122701571dc25c33100ad608c28847810 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Thu, 17 Jun 2010 15:31:30 +0000 Subject: [PATCH] api change --- src/include/gnunet_testing_lib.h | 21 ++++++++++++++------- 1 file 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; * @param cls closure * @param first peer id for first daemon * @param second peer id for the second daemon + * @param distance distance between the connected peers * @param first_cfg config for the first daemon * @param second_cfg config for the second daemon * @param first_daemon handle for the first daemon @@ -344,13 +345,14 @@ struct GNUNET_TESTING_PeerGroup; * @param emsg error message (NULL on success) */ typedef void (*GNUNET_TESTING_NotifyConnection)(void *cls, - const struct GNUNET_PeerIdentity *first, - const struct GNUNET_PeerIdentity *second, - const struct GNUNET_CONFIGURATION_Handle *first_cfg, - const struct GNUNET_CONFIGURATION_Handle *second_cfg, - struct GNUNET_TESTING_Daemon *first_daemon, - struct GNUNET_TESTING_Daemon *second_daemon, - const char *emsg); + const struct GNUNET_PeerIdentity *first, + const struct GNUNET_PeerIdentity *second, + uint32_t distance, + const struct GNUNET_CONFIGURATION_Handle *first_cfg, + const struct GNUNET_CONFIGURATION_Handle *second_cfg, + struct GNUNET_TESTING_Daemon *first_daemon, + struct GNUNET_TESTING_Daemon *second_daemon, + const char *emsg); /** * Starts a GNUnet daemon. GNUnet must be installed on the target @@ -630,6 +632,11 @@ enum GNUNET_TESTING_Topology */ GNUNET_TESTING_TOPOLOGY_SCALE_FREE, + /** + * Straight line topology. + */ + GNUNET_TESTING_TOPOLOGY_LINE, + /** * All peers are disconnected. */ -- 2.25.1