[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32193 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32193 - gnunet/src/mesh |
Date: |
Tue, 4 Feb 2014 13:36:32 +0100 |
Author: bartpolot
Date: 2014-02-04 13:36:32 +0100 (Tue, 04 Feb 2014)
New Revision: 32193
Modified:
gnunet/src/mesh/gnunet-service-mesh_hello.c
Log:
- doc
Modified: gnunet/src/mesh/gnunet-service-mesh_hello.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_hello.c 2014-02-04 12:36:31 UTC (rev
32192)
+++ gnunet/src/mesh/gnunet-service-mesh_hello.c 2014-02-04 12:36:32 UTC (rev
32193)
@@ -112,16 +112,24 @@
/******************************** API
***********************************/
/******************************************************************************/
-
+/**
+ * Initialize the hello subsystem.
+ *
+ * @param c Configuration.
+ */
void
GMH_init (const struct GNUNET_CONFIGURATION_Handle *c)
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n");
GNUNET_assert (NULL != nc);
peerinfo = GNUNET_PEERINFO_connect (c);
nc = GNUNET_PEERINFO_notify (c, GNUNET_NO, &got_hello, NULL);
}
+/**
+ * Shut down the hello subsystem.
+ */
void
GMH_shutdown ()
{
@@ -138,6 +146,11 @@
}
+/**
+ * Get own hello message.
+ *
+ * @return Own hello message.
+ */
const struct GNUNET_HELLO_Message *
GMH_get_mine (void)
{
@@ -145,15 +158,29 @@
}
+/**
+ * Get another peer's hello message.
+ *
+ * @param id ID of the peer whose hello message is requested.
+ *
+ * @return Hello message, if any (NULL possible).
+ */
const struct GNUNET_HELLO_Message *
GMH_get (const struct GNUNET_PeerIdentity *id)
{
return GMP_get_hello (GMP_get (id));
}
+
+/**
+ * Convert a hello message to a string.
+ *
+ * @param h Hello message.
+ */
void
-GMH_2s ()
+GMH_2s (const struct GNUNET_HELLO_Message *h)
{
+ return "hello (TODO)";
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32193 - gnunet/src/mesh,
gnunet <=