aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-09 14:53:44 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-09 14:53:44 +0000
commit7ae3bcd234e062c28f66db9758f61af401d0a707 (patch)
treeadb1da7611b0afd6ff0fa094a6f6bc7ebabd174e /src/dv
parent006eb1c4f3307fe89c786c2f1ac866611e33d3cd (diff)
downloadgnunet-7ae3bcd234e062c28f66db9758f61af401d0a707.tar.gz
gnunet-7ae3bcd234e062c28f66db9758f61af401d0a707.zip
-simplifying core API (#2400)
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/gnunet-service-dv.c2
-rw-r--r--src/dv/test_transport_api_dv.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c
index 956595f43..6ee95c051 100644
--- a/src/dv/gnunet-service-dv.c
+++ b/src/dv/gnunet-service-dv.c
@@ -3295,7 +3295,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
3295 GNUNET_CONTAINER_multihashmap_create (max_table_size * 3); 3295 GNUNET_CONTAINER_multihashmap_create (max_table_size * 3);
3296 3296
3297 GNUNET_SERVER_add_handlers (server, plugin_handlers); 3297 GNUNET_SERVER_add_handlers (server, plugin_handlers);
3298 coreAPI = GNUNET_CORE_connect (cfg, 1, NULL, /* FIXME: anything we want to pass around? */ 3298 coreAPI = GNUNET_CORE_connect (cfg, NULL, /* FIXME: anything we want to pass around? */
3299 &core_init, &handle_core_connect, 3299 &core_init, &handle_core_connect,
3300 &handle_core_disconnect, NULL, GNUNET_NO, NULL, 3300 &handle_core_disconnect, NULL, GNUNET_NO, NULL,
3301 GNUNET_NO, core_handlers); 3301 GNUNET_NO, core_handlers);
diff --git a/src/dv/test_transport_api_dv.c b/src/dv/test_transport_api_dv.c
index 6165a9db2..b24bfbf31 100644
--- a/src/dv/test_transport_api_dv.c
+++ b/src/dv/test_transport_api_dv.c
@@ -601,7 +601,7 @@ connect_notify_peer1 (void *cls, const struct GNUNET_PeerIdentity *peer,
601 * Connect to the receiving peer 601 * Connect to the receiving peer
602 */ 602 */
603 pos->peer2handle = 603 pos->peer2handle =
604 GNUNET_CORE_connect (pos->peer2->cfg, 1, pos, &init_notify_peer2, 604 GNUNET_CORE_connect (pos->peer2->cfg, pos, &init_notify_peer2,
605 &connect_notify_peer2, NULL, NULL, GNUNET_YES, 605 &connect_notify_peer2, NULL, NULL, GNUNET_YES,
606 NULL, GNUNET_YES, handlers); 606 NULL, GNUNET_YES, handlers);
607 } 607 }
@@ -651,7 +651,7 @@ send_test_messages (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
651 * Connect to the sending peer 651 * Connect to the sending peer
652 */ 652 */
653 pos->peer1handle = 653 pos->peer1handle =
654 GNUNET_CORE_connect (pos->peer1->cfg, 1, pos, &init_notify_peer1, 654 GNUNET_CORE_connect (pos->peer1->cfg, pos, &init_notify_peer1,
655 &connect_notify_peer1, NULL, NULL, GNUNET_NO, NULL, 655 &connect_notify_peer1, NULL, NULL, GNUNET_NO, NULL,
656 GNUNET_NO, no_handlers); 656 GNUNET_NO, no_handlers);
657 657
@@ -944,7 +944,7 @@ peers_started_callback (void *cls, const struct GNUNET_PeerIdentity *id,
944 944
945 new_peer = GNUNET_malloc (sizeof (struct PeerContext)); 945 new_peer = GNUNET_malloc (sizeof (struct PeerContext));
946 new_peer->peer_handle = 946 new_peer->peer_handle =
947 GNUNET_CORE_connect (cfg, 1, d, NULL, &all_connect_handler, NULL, NULL, 947 GNUNET_CORE_connect (cfg, d, NULL, &all_connect_handler, NULL, NULL,
948 GNUNET_NO, NULL, GNUNET_NO, no_handlers); 948 GNUNET_NO, NULL, GNUNET_NO, no_handlers);
949 new_peer->daemon = d; 949 new_peer->daemon = d;
950 new_peer->next = all_peers; 950 new_peer->next = all_peers;