From f9928e80e3a6209f95bd65f0aee7d8bff4c65109 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Thu, 2 Sep 2010 15:57:15 +0000 Subject: [PATCH] missing definition --- src/include/gnunet_testing_lib.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index 5145e2e09..8199607a1 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h @@ -456,6 +456,18 @@ struct GNUNET_TESTING_Daemon * GNUNET_TESTING_daemon_get (struct GNUNET_TESTING_PeerGroup *pg, unsigned int position); +/* + * Get a daemon by peer identity, so callers can + * retrieve the daemon without knowing it's offset. + * + * @param pg the peer group to retrieve the daemon from + * @param peer_id the peer identity of the daemon to retrieve + * + * @return the daemon on success, or NULL if no such peer identity is found + */ +struct GNUNET_TESTING_Daemon * +GNUNET_TESTING_daemon_get_by_id (struct GNUNET_TESTING_PeerGroup *pg, + struct GNUNET_PeerIdentity *peer_id); /** * Stops a GNUnet daemon. -- 2.25.1