aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_hello.c')
-rw-r--r--src/cadet/gnunet-service-cadet_hello.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cadet/gnunet-service-cadet_hello.c b/src/cadet/gnunet-service-cadet_hello.c
index 7eda3f507..edb1a96a2 100644
--- a/src/cadet/gnunet-service-cadet_hello.c
+++ b/src/cadet/gnunet-service-cadet_hello.c
@@ -108,12 +108,12 @@ got_hello (void *cls, const struct GNUNET_PeerIdentity *id,
108 LOG (GNUNET_ERROR_TYPE_DEBUG, " hello for %s (%d bytes), expires on %s\n", 108 LOG (GNUNET_ERROR_TYPE_DEBUG, " hello for %s (%d bytes), expires on %s\n",
109 GNUNET_i2s (id), GNUNET_HELLO_size (hello), 109 GNUNET_i2s (id), GNUNET_HELLO_size (hello),
110 GNUNET_STRINGS_absolute_time_to_string (GNUNET_HELLO_get_last_expiration(hello))); 110 GNUNET_STRINGS_absolute_time_to_string (GNUNET_HELLO_get_last_expiration(hello)));
111 peer = GMP_get (id); 111 peer = GCP_get (id);
112 GMP_set_hello (peer, hello); 112 GCP_set_hello (peer, hello);
113 113
114 if (GMP_get_short_id (peer) == myid) 114 if (GCP_get_short_id (peer) == myid)
115 { 115 {
116 mine = GMP_get_hello (peer); 116 mine = GCP_get_hello (peer);
117 LOG (GNUNET_ERROR_TYPE_DEBUG, " updated mine to %p\n", mine); 117 LOG (GNUNET_ERROR_TYPE_DEBUG, " updated mine to %p\n", mine);
118 } 118 }
119} 119}
@@ -129,7 +129,7 @@ got_hello (void *cls, const struct GNUNET_PeerIdentity *id,
129 * @param c Configuration. 129 * @param c Configuration.
130 */ 130 */
131void 131void
132GMH_init (const struct GNUNET_CONFIGURATION_Handle *c) 132GCH_init (const struct GNUNET_CONFIGURATION_Handle *c)
133{ 133{
134 LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); 134 LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n");
135 GNUNET_assert (NULL == nc); 135 GNUNET_assert (NULL == nc);
@@ -142,7 +142,7 @@ GMH_init (const struct GNUNET_CONFIGURATION_Handle *c)
142 * Shut down the hello subsystem. 142 * Shut down the hello subsystem.
143 */ 143 */
144void 144void
145GMH_shutdown () 145GCH_shutdown ()
146{ 146{
147 if (NULL != nc) 147 if (NULL != nc)
148 { 148 {
@@ -163,7 +163,7 @@ GMH_shutdown ()
163 * @return Own hello message. 163 * @return Own hello message.
164 */ 164 */
165const struct GNUNET_HELLO_Message * 165const struct GNUNET_HELLO_Message *
166GMH_get_mine (void) 166GCH_get_mine (void)
167{ 167{
168 LOG (GNUNET_ERROR_TYPE_DEBUG, " mine is %p\n", mine); 168 LOG (GNUNET_ERROR_TYPE_DEBUG, " mine is %p\n", mine);
169 return mine; 169 return mine;
@@ -178,9 +178,9 @@ GMH_get_mine (void)
178 * @return Hello message, if any (NULL possible). 178 * @return Hello message, if any (NULL possible).
179 */ 179 */
180const struct GNUNET_HELLO_Message * 180const struct GNUNET_HELLO_Message *
181GMH_get (const struct GNUNET_PeerIdentity *id) 181GCH_get (const struct GNUNET_PeerIdentity *id)
182{ 182{
183 return GMP_get_hello (GMP_get (id)); 183 return GCP_get_hello (GCP_get (id));
184} 184}
185 185
186 186
@@ -190,7 +190,7 @@ GMH_get (const struct GNUNET_PeerIdentity *id)
190 * @param h Hello message. 190 * @param h Hello message.
191 */ 191 */
192char * 192char *
193GMH_2s (const struct GNUNET_HELLO_Message *h) 193GCH_2s (const struct GNUNET_HELLO_Message *h)
194{ 194{
195 return "hello (TODO)"; 195 return "hello (TODO)";
196} 196}