diff options
Diffstat (limited to 'src/arm/arm_monitor_api.c')
-rw-r--r-- | src/arm/arm_monitor_api.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/arm/arm_monitor_api.c b/src/arm/arm_monitor_api.c index ea4caa866..19a2f4eb9 100644 --- a/src/arm/arm_monitor_api.c +++ b/src/arm/arm_monitor_api.c | |||
@@ -85,25 +85,29 @@ struct GNUNET_ARM_MonitorHandle | |||
85 | struct GNUNET_SCHEDULER_Task * init_timeout_task_id; | 85 | struct GNUNET_SCHEDULER_Task * init_timeout_task_id; |
86 | }; | 86 | }; |
87 | 87 | ||
88 | |||
88 | static void | 89 | static void |
89 | monitor_notify_handler (void *cls, const struct GNUNET_MessageHeader *msg); | 90 | monitor_notify_handler (void *cls, |
91 | const struct GNUNET_MessageHeader *msg); | ||
92 | |||
90 | 93 | ||
91 | static int | 94 | static int |
92 | reconnect_arm_monitor (struct GNUNET_ARM_MonitorHandle *h); | 95 | reconnect_arm_monitor (struct GNUNET_ARM_MonitorHandle *h); |
93 | 96 | ||
97 | |||
94 | /** | 98 | /** |
95 | * Task scheduled to try to re-connect to arm. | 99 | * Task scheduled to try to re-connect to arm. |
96 | * | 100 | * |
97 | * @param cls the 'struct GNUNET_ARM_MonitorHandle' | 101 | * @param cls the 'struct GNUNET_ARM_MonitorHandle' |
98 | * @param tc task context | ||
99 | */ | 102 | */ |
100 | static void | 103 | static void |
101 | reconnect_arm_monitor_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 104 | reconnect_arm_monitor_task (void *cls) |
102 | { | 105 | { |
103 | struct GNUNET_ARM_MonitorHandle *h = cls; | 106 | struct GNUNET_ARM_MonitorHandle *h = cls; |
104 | 107 | ||
105 | h->reconnect_task = NULL; | 108 | h->reconnect_task = NULL; |
106 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Connecting to ARM service for monitoring after delay\n"); | 109 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
110 | "Connecting to ARM service for monitoring after delay\n"); | ||
107 | reconnect_arm_monitor (h); | 111 | reconnect_arm_monitor (h); |
108 | } | 112 | } |
109 | 113 | ||
@@ -147,15 +151,14 @@ reconnect_arm_monitor_later (struct GNUNET_ARM_MonitorHandle *h) | |||
147 | * Init message timed out. Disconnect and try again. | 151 | * Init message timed out. Disconnect and try again. |
148 | * | 152 | * |
149 | * @param cls arm monitor handle | 153 | * @param cls arm monitor handle |
150 | * @param tc task context | ||
151 | */ | 154 | */ |
152 | static void | 155 | static void |
153 | init_timeout_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 156 | init_timeout_task (void *cls) |
154 | { | 157 | { |
155 | struct GNUNET_ARM_MonitorHandle *h = cls; | 158 | struct GNUNET_ARM_MonitorHandle *h = cls; |
159 | |||
156 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 160 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
157 | "Init message timed out\n"); | 161 | "Init message timed out\n"); |
158 | |||
159 | h->init_timeout_task_id = NULL; | 162 | h->init_timeout_task_id = NULL; |
160 | reconnect_arm_monitor_later (h); | 163 | reconnect_arm_monitor_later (h); |
161 | } | 164 | } |