aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_hello.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-28 15:43:23 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-28 15:43:23 +0000
commit91140caa33349036934b5b86238c0ec6265e0a13 (patch)
tree7340da5a8452a12588be643e59458f2f0a6891e1 /src/transport/gnunet-service-transport_hello.c
parenta55b2de0863937cfe9c0fcbf41882b81f4c82c9c (diff)
downloadgnunet-91140caa33349036934b5b86238c0ec6265e0a13.tar.gz
gnunet-91140caa33349036934b5b86238c0ec6265e0a13.zip
support for FRIEND_HELLO messages
Diffstat (limited to 'src/transport/gnunet-service-transport_hello.c')
-rw-r--r--src/transport/gnunet-service-transport_hello.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_hello.c b/src/transport/gnunet-service-transport_hello.c
index 78968ae77..d9f7e2e4e 100644
--- a/src/transport/gnunet-service-transport_hello.c
+++ b/src/transport/gnunet-service-transport_hello.c
@@ -200,15 +200,16 @@ refresh_hello ()
200/** 200/**
201 * Initialize the HELLO module. 201 * Initialize the HELLO module.
202 * 202 *
203 * @param friend_only use a friend only hello
203 * @param cb function to call whenever our HELLO changes 204 * @param cb function to call whenever our HELLO changes
204 * @param cb_cls closure for cb 205 * @param cb_cls closure for cb
205 */ 206 */
206void 207void
207GST_hello_start (GST_HelloCallback cb, void *cb_cls) 208GST_hello_start (int friend_only, GST_HelloCallback cb, void *cb_cls)
208{ 209{
209 hello_cb = cb; 210 hello_cb = cb;
210 hello_cb_cls = cb_cls; 211 hello_cb_cls = cb_cls;
211 our_hello = GNUNET_HELLO_create (&GST_my_public_key, NULL, NULL, GNUNET_NO); 212 our_hello = GNUNET_HELLO_create (&GST_my_public_key, NULL, NULL, friend_only);
212 GNUNET_assert (NULL != our_hello); 213 GNUNET_assert (NULL != our_hello);
213 refresh_hello (); 214 refresh_hello ();
214} 215}