diff options
author | Gabor X Toth <*@tg-x.net> | 2016-05-05 11:33:40 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2016-05-05 11:33:40 +0000 |
commit | 78edac9543fa364868e9570080b46a153ec5fad4 (patch) | |
tree | 2d4bf8e2d41e4ab0c789ef6f0553f3c3a22d0f2c /src/social/test_social.c | |
parent | 2b987c3684cbf1d15b9ed44bbce911653bd6f330 (diff) | |
download | gnunet-78edac9543fa364868e9570080b46a153ec5fad4.tar.gz gnunet-78edac9543fa364868e9570080b46a153ec5fad4.zip |
social: app connected callback
Diffstat (limited to 'src/social/test_social.c')
-rw-r--r-- | src/social/test_social.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/social/test_social.c b/src/social/test_social.c index d781561e5..9c07a7be6 100644 --- a/src/social/test_social.c +++ b/src/social/test_social.c | |||
@@ -50,7 +50,7 @@ const char *app_id = "test"; | |||
50 | /** | 50 | /** |
51 | * Handle for task for timeout termination. | 51 | * Handle for task for timeout termination. |
52 | */ | 52 | */ |
53 | struct GNUNET_SCHEDULER_Task * end_badly_task; | 53 | struct GNUNET_SCHEDULER_Task *end_badly_task; |
54 | 54 | ||
55 | const struct GNUNET_CONFIGURATION_Handle *cfg; | 55 | const struct GNUNET_CONFIGURATION_Handle *cfg; |
56 | 56 | ||
@@ -400,6 +400,14 @@ guest_reconnected (void *cls, int result, | |||
400 | 400 | ||
401 | 401 | ||
402 | static void | 402 | static void |
403 | app_connected (void *cls) | ||
404 | { | ||
405 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
406 | "App connected: %p\n", cls); | ||
407 | } | ||
408 | |||
409 | |||
410 | static void | ||
403 | app_recv_host (void *cls, | 411 | app_recv_host (void *cls, |
404 | struct GNUNET_SOCIAL_HostConnection *hconn, | 412 | struct GNUNET_SOCIAL_HostConnection *hconn, |
405 | struct GNUNET_SOCIAL_Ego *ego, | 413 | struct GNUNET_SOCIAL_Ego *ego, |
@@ -492,6 +500,7 @@ schedule_reconnect (void *cls) | |||
492 | app_recv_ego, | 500 | app_recv_ego, |
493 | app_recv_host, | 501 | app_recv_host, |
494 | app_recv_guest, | 502 | app_recv_guest, |
503 | app_connected, | ||
495 | NULL); | 504 | NULL); |
496 | } | 505 | } |
497 | 506 | ||