*/
struct MeshPeer;
+#include "gnunet-service-mesh_connection.h"
+
/**
* Callback called when a queued message is sent.
*
int fwd, size_t size,
struct GNUNET_TIME_Relative wait);
-#include "gnunet-service-mesh_connection.h"
-
-
/******************************************************************************/
/******************************** API ***********************************/
/******************************************************************************/
* @param confirmed Whether we know if the path works or not.
*/
void
-GMP_add_path_to_all (struct MeshPeerPath *p, int confirmed);
+GMP_add_path_to_all (const struct MeshPeerPath *p, int confirmed);
/**
* Remove a connection from a neighboring peer.
int
GMP_remove_connection (struct MeshPeer *peer, const struct MeshConnection *c);
+/**
+ * Start the DHT search for new paths towards the peer: we don't have
+ * enough good connections.
+ *
+ * @param peer Destination peer.
+ */
void
GMP_start_search (struct MeshPeer *peer);
+/**
+ * Stop the DHT search for new paths towards the peer: we already have
+ * enough good connections.
+ *
+ * @param peer Destination peer.
+ */
void
GMP_stop_search (struct MeshPeer *peer);
GNUNET_PEER_Id
GMP_get_short_id (const struct MeshPeer *peer);
+/**
+ * Get the tunnel towards a peer.
+ *
+ * @param peer Peer to get from.
+ *
+ * @return Tunnel towards peer.
+ */
+struct MeshTunnel3 *
+GMP_get_tunnel (const struct MeshPeer *peer);
+
/**
* Get the static string for a peer ID.
*