aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/cadet_api_list_tunnels.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-01-27 00:36:47 +0100
committerChristian Grothoff <christian@grothoff.org>2019-01-27 00:36:47 +0100
commit65b339b7ce68fcbaec9df6f66e8ed45e60b39ce1 (patch)
treefff17cdb219935617877a5504bb8435712b80a61 /src/cadet/cadet_api_list_tunnels.c
parent8f884f001a70fee622fff0c0ac8c38a0634df789 (diff)
downloadgnunet-65b339b7ce68fcbaec9df6f66e8ed45e60b39ce1.tar.gz
gnunet-65b339b7ce68fcbaec9df6f66e8ed45e60b39ce1.zip
more work on #5385
Diffstat (limited to 'src/cadet/cadet_api_list_tunnels.c')
-rw-r--r--src/cadet/cadet_api_list_tunnels.c26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/cadet/cadet_api_list_tunnels.c b/src/cadet/cadet_api_list_tunnels.c
index 96343bf4d..7d0534e41 100644
--- a/src/cadet/cadet_api_list_tunnels.c
+++ b/src/cadet/cadet_api_list_tunnels.c
@@ -18,7 +18,7 @@
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19*/ 19*/
20/** 20/**
21 * @file cadet/cadet_api.c 21 * @file cadet/cadet_api_list_tunnels.c
22 * @brief cadet api: client implementation of cadet service 22 * @brief cadet api: client implementation of cadet service
23 * @author Bartlomiej Polot 23 * @author Bartlomiej Polot
24 * @author Christian Grothoff 24 * @author Christian Grothoff
@@ -31,9 +31,8 @@
31#include "cadet_protocol.h" 31#include "cadet_protocol.h"
32 32
33 33
34
35/** 34/**
36 * Ugly legacy hack. 35 * Operation handle.
37 */ 36 */
38struct GNUNET_CADET_ListTunnels 37struct GNUNET_CADET_ListTunnels
39{ 38{
@@ -47,6 +46,27 @@ struct GNUNET_CADET_ListTunnels
47 * Info callback closure for @c tunnels_cb. 46 * Info callback closure for @c tunnels_cb.
48 */ 47 */
49 void *tunnels_cb_cls; 48 void *tunnels_cb_cls;
49
50 /**
51 * Message queue to talk to CADET service.
52 */
53 struct GNUNET_MQ_Handle *mq;
54
55 /**
56 * Configuration we use.
57 */
58 const struct GNUNET_CONFIGURATION_Handle *cfg;
59
60 /**
61 * Task to reconnect.
62 */
63 struct GNUNET_SCHEDULER_Task *reconnect_task;
64
65 /**
66 * Backoff for reconnect attempts.
67 */
68 struct GNUNET_TIME_Relative backoff;
69
50}; 70};
51 71
52 72