aboutsummaryrefslogtreecommitdiff
path: root/src/service/peerstore/peerstore_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/peerstore/peerstore_api.c')
-rw-r--r--src/service/peerstore/peerstore_api.c48
1 files changed, 1 insertions, 47 deletions
diff --git a/src/service/peerstore/peerstore_api.c b/src/service/peerstore/peerstore_api.c
index 8770c36e4..a774d3baa 100644
--- a/src/service/peerstore/peerstore_api.c
+++ b/src/service/peerstore/peerstore_api.c
@@ -312,52 +312,6 @@ struct GNUNET_PEERSTORE_NotifyContext
312 unsigned int canceled; 312 unsigned int canceled;
313}; 313};
314 314
315/**
316 * Context for a add hello uri request.
317 */
318struct GNUNET_PEERSTORE_StoreHelloContext
319{
320 /**
321 * Peerstore handle.
322 */
323 struct GNUNET_PEERSTORE_Handle *h;
324
325 /**
326 * Function to call with information.
327 */
328 GNUNET_PEERSTORE_Continuation cont;
329
330 /**
331 * Closure for @e callback.
332 */
333 void *cont_cls;
334
335 /**
336 * Map with all store contexts started during adding hello.
337 */
338 struct GNUNET_CONTAINER_MultiPeerMap *store_context_map;
339
340 /**
341 * Active watch to be notified about conflicting hello uri add requests.
342 */
343 struct GNUNET_PEERSTORE_WatchContext *wc;
344
345 /**
346 * Hello uri which was request for storing.
347 */
348 struct GNUNET_MessageHeader *hello;
349
350 /**
351 * The peer id for the hello.
352 */
353 struct GNUNET_PeerIdentity *pid;
354
355 /**
356 * Was this request successful.
357 */
358 int success;
359};
360
361/******************************************************************************/ 315/******************************************************************************/
362/******************* DECLARATIONS *********************/ 316/******************* DECLARATIONS *********************/
363/******************************************************************************/ 317/******************************************************************************/
@@ -1319,7 +1273,7 @@ GNUNET_PEERSTORE_hello_add (struct GNUNET_PEERSTORE_Handle *h,
1319{ 1273{
1320 struct GNUNET_HELLO_Builder *builder = GNUNET_HELLO_builder_from_msg (msg); 1274 struct GNUNET_HELLO_Builder *builder = GNUNET_HELLO_builder_from_msg (msg);
1321 struct GNUNET_PEERSTORE_StoreHelloContext *huc; 1275 struct GNUNET_PEERSTORE_StoreHelloContext *huc;
1322 struct GNUNET_PeerIdentity *pid; 1276 const struct GNUNET_PeerIdentity *pid;
1323 struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get (); 1277 struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
1324 struct GNUNET_TIME_Absolute hello_exp = 1278 struct GNUNET_TIME_Absolute hello_exp =
1325 GNUNET_HELLO_builder_get_expiration_time (msg); 1279 GNUNET_HELLO_builder_get_expiration_time (msg);