towards PEERSTORE file plugin
[oweals/gnunet.git] / src / include / gnunet_testbed_service.h
index 60fcb64afd1feb1f220c6f8f8fa4d422853e80a3..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
  */