towards PEERSTORE file plugin
[oweals/gnunet.git] / src / include / gnunet_testbed_service.h
index b204804d14ca347a538ab3d02aa33cdb5290346a..ef5821aab999484b35dd2fd59d56591103fb7765 100644 (file)
@@ -1335,6 +1335,18 @@ GNUNET_TESTBED_get_statistics (unsigned int num_peers,
                                GNUNET_TESTBED_OperationCompletionCallback cont,
                                void *cls);
 
+
+/**
+ * Return the index of the peer inside of the total peer array,
+ * aka. the peer's "unique ID".
+ *
+ * @param peer Peer handle.
+ *
+ * @return The peer's unique ID.
+ */
+uint32_t
+GNUNET_TESTBED_get_index (const struct GNUNET_TESTBED_Peer *peer);
+
 /**
  * Handle for testbed run helper funtions
  */
@@ -1653,7 +1665,7 @@ GNUNET_TESTBED_underlaylinkmodel_add_peer (struct GNUNET_TESTBED_UnderlayLinkMod
 /**
  * Set the metrics for a link to the given peer in the underlay model.  The link
  * SHOULD be permittable according to the given model.
- * 
+ *
  * @ingroup underlay
  * @param model the model
  * @param peer the other end peer of the link