diff options
-rw-r--r-- | src/peerinfo/peerinfo_api_notify.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/peerinfo/peerinfo_api_notify.c b/src/peerinfo/peerinfo_api_notify.c index 625cfb8f6..e707a911e 100644 --- a/src/peerinfo/peerinfo_api_notify.c +++ b/src/peerinfo/peerinfo_api_notify.c | |||
@@ -172,6 +172,23 @@ handle_notification (void *cls, | |||
172 | 172 | ||
173 | 173 | ||
174 | /** | 174 | /** |
175 | * Type of a function to call when we receive a message from the | ||
176 | * service. Call the iterator with the result and (if applicable) | ||
177 | * continue to receive more messages or trigger processing the next | ||
178 | * event (if applicable). | ||
179 | * | ||
180 | * @param cls closure | ||
181 | * @param msg message received, NULL on timeout or fatal error | ||
182 | */ | ||
183 | static void | ||
184 | handle_end_iteration (void *cls, | ||
185 | const struct GNUNET_MessageHeader *msg) | ||
186 | { | ||
187 | /* these are ignored by the notify API */ | ||
188 | } | ||
189 | |||
190 | |||
191 | /** | ||
175 | * Task to re-try connecting to peerinfo. | 192 | * Task to re-try connecting to peerinfo. |
176 | * | 193 | * |
177 | * @param cls the `struct GNUNET_PEERINFO_NotifyContext *` | 194 | * @param cls the `struct GNUNET_PEERINFO_NotifyContext *` |
@@ -185,6 +202,10 @@ reconnect (void *cls) | |||
185 | GNUNET_MESSAGE_TYPE_PEERINFO_INFO, | 202 | GNUNET_MESSAGE_TYPE_PEERINFO_INFO, |
186 | struct InfoMessage, | 203 | struct InfoMessage, |
187 | nc), | 204 | nc), |
205 | GNUNET_MQ_hd_fixed_size (end_iteration, | ||
206 | GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END, | ||
207 | struct GNUNET_MessageHeader, | ||
208 | nc), | ||
188 | GNUNET_MQ_handler_end () | 209 | GNUNET_MQ_handler_end () |
189 | }; | 210 | }; |
190 | struct GNUNET_MQ_Envelope *env; | 211 | struct GNUNET_MQ_Envelope *env; |