aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornevans <nevans@140774ce-b5e7-0310-ab8b-a85725594a96>2010-09-02 15:57:15 +0000
committernevans <nevans@140774ce-b5e7-0310-ab8b-a85725594a96>2010-09-02 15:57:15 +0000
commit444094ea65dce9fd94eab84384fdfdb136a8a41a (patch)
treee2124cecdeede902b77d9d48a959d86a0e3669b6 /src
parentc913c697d684a6e9f22f842cd36777f4fe6a0cad (diff)
missing definition
git-svn-id: https://gnunet.org/svn/gnunet@12815 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_testing_lib.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h
index 5145e2e098..8199607a13 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.