aboutsummaryrefslogtreecommitdiff
path: root/src/social/gnunet-service-social.c
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2016-09-23 14:26:55 +0000
committerGabor X Toth <*@tg-x.net>2016-09-23 14:26:55 +0000
commit451fd32170103921993d876d765a8755ce737a0b (patch)
treead41cd960f7f8b0f80d9967332ffc0a85e9cb0c1 /src/social/gnunet-service-social.c
parent3e872864741aaa83be947b614eafb4fef2c74253 (diff)
downloadgnunet-451fd32170103921993d876d765a8755ce737a0b.tar.gz
gnunet-451fd32170103921993d876d765a8755ce737a0b.zip
multicast,psyc,social: remove core dependencny
Diffstat (limited to 'src/social/gnunet-service-social.c')
-rw-r--r--src/social/gnunet-service-social.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/social/gnunet-service-social.c b/src/social/gnunet-service-social.c
index 01a624e2a..681d469bc 100644
--- a/src/social/gnunet-service-social.c
+++ b/src/social/gnunet-service-social.c
@@ -31,7 +31,6 @@
31#include "gnunet_util_lib.h" 31#include "gnunet_util_lib.h"
32#include "gnunet_constants.h" 32#include "gnunet_constants.h"
33#include "gnunet_protocols.h" 33#include "gnunet_protocols.h"
34#include "gnunet_core_service.h"
35#include "gnunet_identity_service.h" 34#include "gnunet_identity_service.h"
36#include "gnunet_namestore_service.h" 35#include "gnunet_namestore_service.h"
37#include "gnunet_gns_service.h" 36#include "gnunet_gns_service.h"
@@ -48,7 +47,6 @@
48static const struct GNUNET_CONFIGURATION_Handle *cfg; 47static const struct GNUNET_CONFIGURATION_Handle *cfg;
49 48
50/* Handles to other services */ 49/* Handles to other services */
51static struct GNUNET_CORE_Handle *core;
52static struct GNUNET_IDENTITY_Handle *id; 50static struct GNUNET_IDENTITY_Handle *id;
53static struct GNUNET_GNS_Handle *gns; 51static struct GNUNET_GNS_Handle *gns;
54static struct GNUNET_NAMESTORE_Handle *namestore; 52static struct GNUNET_NAMESTORE_Handle *namestore;
@@ -454,11 +452,6 @@ shutdown_task (void *cls)
454 GNUNET_SERVER_notification_context_destroy (nc); 452 GNUNET_SERVER_notification_context_destroy (nc);
455 nc = NULL; 453 nc = NULL;
456 } 454 }
457 if (NULL != core)
458 {
459 GNUNET_CORE_disconnecT (core);
460 core = NULL;
461 }
462 if (NULL != id) 455 if (NULL != id)
463 { 456 {
464 GNUNET_IDENTITY_disconnect (id); 457 GNUNET_IDENTITY_disconnect (id);
@@ -3468,16 +3461,6 @@ identity_recv_ego (void *cls, struct GNUNET_IDENTITY_Ego *id_ego,
3468 3461
3469 3462
3470/** 3463/**
3471 * Connected to core service.
3472 */
3473static void
3474core_connected (void *cls, const struct GNUNET_PeerIdentity *my_identity)
3475{
3476 this_peer = *my_identity;
3477}
3478
3479
3480/**
3481 * Initialize the PSYC service. 3464 * Initialize the PSYC service.
3482 * 3465 *
3483 * @param cls Closure. 3466 * @param cls Closure.
@@ -3489,6 +3472,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
3489 const struct GNUNET_CONFIGURATION_Handle *c) 3472 const struct GNUNET_CONFIGURATION_Handle *c)
3490{ 3473{
3491 cfg = c; 3474 cfg = c;
3475 GNUNET_CRYPTO_get_peer_identity (cfg, &this_peer);
3492 3476
3493 hosts = GNUNET_CONTAINER_multihashmap_create (1, GNUNET_YES); 3477 hosts = GNUNET_CONTAINER_multihashmap_create (1, GNUNET_YES);
3494 guests = GNUNET_CONTAINER_multihashmap_create (1, GNUNET_YES); 3478 guests = GNUNET_CONTAINER_multihashmap_create (1, GNUNET_YES);
@@ -3500,7 +3484,6 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
3500 apps_places = GNUNET_CONTAINER_multihashmap_create(1, GNUNET_NO); 3484 apps_places = GNUNET_CONTAINER_multihashmap_create(1, GNUNET_NO);
3501 places_apps = GNUNET_CONTAINER_multihashmap_create(1, GNUNET_NO); 3485 places_apps = GNUNET_CONTAINER_multihashmap_create(1, GNUNET_NO);
3502 3486
3503 core = GNUNET_CORE_connecT (cfg, NULL, core_connected, NULL, NULL, NULL);
3504 id = GNUNET_IDENTITY_connect (cfg, &identity_recv_ego, NULL); 3487 id = GNUNET_IDENTITY_connect (cfg, &identity_recv_ego, NULL);
3505 gns = GNUNET_GNS_connect (cfg); 3488 gns = GNUNET_GNS_connect (cfg);
3506 namestore = GNUNET_NAMESTORE_connect (cfg); 3489 namestore = GNUNET_NAMESTORE_connect (cfg);