aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index d129ba746..b890a96c8 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -25,6 +25,7 @@
25#include "gnunet_applications.h" 25#include "gnunet_applications.h"
26#include "gnunet_util_lib.h" 26#include "gnunet_util_lib.h"
27#include "gnunet_cadet_service.h" 27#include "gnunet_cadet_service.h"
28#include "gnunet_core_service.h"
28#include "gnunet_peerinfo_service.h" 29#include "gnunet_peerinfo_service.h"
29#include "gnunet_nse_service.h" 30#include "gnunet_nse_service.h"
30#include "gnunet_statistics_service.h" 31#include "gnunet_statistics_service.h"
@@ -447,6 +448,14 @@ struct GNUNET_STATISTICS_Handle *stats;
447struct GNUNET_CADET_Handle *cadet_handle; 448struct GNUNET_CADET_Handle *cadet_handle;
448 449
449/** 450/**
451 * Handle to CORE
452 */
453struct GNUNET_CORE_Handle *core_handle;
454
455struct GNUNET_CONTAINER_MultiPeerMap *map_single_hop;
456struct GNUNET_CONTAINER_MultiPeerMap *map_multi_hop;
457
458/**
450 * Our own identity. 459 * Our own identity.
451 */ 460 */
452static struct GNUNET_PeerIdentity own_identity; 461static struct GNUNET_PeerIdentity own_identity;
@@ -4566,6 +4575,13 @@ run (void *cls,
4566 4575
4567 cadet_handle = GNUNET_CADET_connect (cfg); 4576 cadet_handle = GNUNET_CADET_connect (cfg);
4568 GNUNET_assert (NULL != cadet_handle); 4577 GNUNET_assert (NULL != cadet_handle);
4578 core_handle = GNUNET_CORE_connect (cfg,
4579 NULL, /* cls */
4580 NULL, /* init */
4581 NULL, /* connects */
4582 NULL, /* disconnects */
4583 NULL); /* handlers */
4584 GNUNET_assert (NULL != core_handle);
4569 4585
4570 4586
4571 alpha = 0.45; 4587 alpha = 0.45;