aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_hello.c
diff options
context:
space:
mode:
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}