- MOve peer2s to peer section
authorBart Polot <bart@net.in.tum.de>
Tue, 8 Oct 2013 09:36:57 +0000 (09:36 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 8 Oct 2013 09:36:57 +0000 (09:36 +0000)
src/mesh/gnunet-service-mesh-enc.c
src/mesh/gnunet-service-mesh_peer.c
src/mesh/gnunet-service-mesh_peer.h

index 45103945f5eae8cdbf73d0427d11c3144d4faad9..d67a8280259fe6e10f0732ffcad810404985f5c3 100644 (file)
@@ -109,22 +109,6 @@ static struct GNUNET_CRYPTO_EccPrivateKey *my_private_key;
 /******************************************************************************/
 
 
-/**
- * Get the static string for a peer ID.
- *
- * @param peer Peer.
- *
- * @return Static string for it's ID.
- */
-static const char *
-peer2s (const struct MeshPeer *peer)
-{
-  if (NULL == peer)
-    return "(NULL)";
-  return GNUNET_i2s (GNUNET_PEER_resolve2 (peer->id));
-}
-
-
 
 /**
  * Send an ACK on the appropriate connection/channel, depending on
index 553e840958660301c147e6264a5c048a60fbf92f..43c6259e3cda71bba631a12a5e6e6aca10b62bf3 100644 (file)
@@ -1260,4 +1260,19 @@ GMP_connect (struct MeshPeer *peer)
     if (MESH_TUNNEL_NEW == t->state)
       tunnel_change_state (t, MESH_TUNNEL_SEARCHING);
   }
+}
+
+/**
+ * Get the static string for a peer ID.
+ *
+ * @param peer Peer.
+ *
+ * @return Static string for it's ID.
+ */
+const char *
+GMP_2s (const struct MeshPeer *peer)
+{
+  if (NULL == peer)
+    return "(NULL)";
+  return GNUNET_i2s (GNUNET_PEER_resolve2 (peer->id));
 }
\ No newline at end of file
index ca885d1b72f1ce672041a8f9024fba6969a5ec46..7945a01f5b93e3724e056831e473c8511a4d68c5 100644 (file)
@@ -92,6 +92,17 @@ void
 GMP_queue_destroy (struct MeshPeerQueue *queue, int clear_cls);
 
 
+/**
+ * Get the static string for a peer ID.
+ *
+ * @param peer Peer.
+ *
+ * @return Static string for it's ID.
+ */
+const char *
+GMP_2s (const struct MeshPeer *peer);
+
+
 #if 0                           /* keep Emacsens' auto-indent happy */
 {
 #endif