gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r29968 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r29968 - gnunet/src/mesh
Date: Tue, 8 Oct 2013 11:36:57 +0200

Author: bartpolot
Date: 2013-10-08 11:36:57 +0200 (Tue, 08 Oct 2013)
New Revision: 29968

Modified:
   gnunet/src/mesh/gnunet-service-mesh-enc.c
   gnunet/src/mesh/gnunet-service-mesh_peer.c
   gnunet/src/mesh/gnunet-service-mesh_peer.h
Log:
- MOve peer2s to peer section


Modified: gnunet/src/mesh/gnunet-service-mesh-enc.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh-enc.c   2013-10-08 09:34:57 UTC (rev 
29967)
+++ gnunet/src/mesh/gnunet-service-mesh-enc.c   2013-10-08 09:36:57 UTC (rev 
29968)
@@ -109,23 +109,7 @@
 
/******************************************************************************/
 
 
-/**
- * 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
  * the direction and the position of the peer.

Modified: gnunet/src/mesh/gnunet-service-mesh_peer.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_peer.c  2013-10-08 09:34:57 UTC (rev 
29967)
+++ gnunet/src/mesh/gnunet-service-mesh_peer.c  2013-10-08 09:36:57 UTC (rev 
29968)
@@ -1260,4 +1260,19 @@
     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

Modified: gnunet/src/mesh/gnunet-service-mesh_peer.h
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_peer.h  2013-10-08 09:34:57 UTC (rev 
29967)
+++ gnunet/src/mesh/gnunet-service-mesh_peer.h  2013-10-08 09:36:57 UTC (rev 
29968)
@@ -92,6 +92,17 @@
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]