aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-10 17:38:29 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-10 17:38:29 +0100
commitbf5f92d9429a556f68c950df7be3dc25907e0d6c (patch)
tree640b74c6a12a53ccac9925eb05b9e6d644d7e748 /src/hostlist
parent06c0c503acd9d523d4d18eeac862222a744db2ab (diff)
rename connecT -> connect now that the old API is dead
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c10
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_client.c4
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_client.h4
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_server.c2
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_server.h2
-rw-r--r--src/hostlist/test_gnunet_daemon_hostlist_learning.c6
6 files changed, 14 insertions, 14 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c
index 7181a913b5..a83d46e071 100644
--- a/src/hostlist/gnunet-daemon-hostlist.c
+++ b/src/hostlist/gnunet-daemon-hostlist.c
@@ -47,7 +47,7 @@ static int provide_hostlist;
/**
* Handle to hostlist server's connect handler
*/
-static GNUNET_CORE_ConnecTEventHandler server_ch;
+static GNUNET_CORE_ConnectEventHandler server_ch;
#endif
@@ -81,12 +81,12 @@ static GNUNET_HOSTLIST_UriHandler client_adv_handler;
/**
* Handle to hostlist client's connect handler
*/
-static GNUNET_CORE_ConnecTEventHandler client_ch;
+static GNUNET_CORE_ConnectEventHandler client_ch;
/**
* Handle to hostlist client's disconnect handler
*/
-static GNUNET_CORE_DisconnecTEventHandler client_dh;
+static GNUNET_CORE_DisconnectEventHandler client_dh;
GNUNET_NETWORK_STRUCT_BEGIN
@@ -260,7 +260,7 @@ cleaning_task (void *cls)
"Hostlist daemon is shutting down\n");
if (NULL != core)
{
- GNUNET_CORE_disconnecT (core);
+ GNUNET_CORE_disconnect (core);
core = NULL;
}
if (bootstrapping)
@@ -330,7 +330,7 @@ run (void *cls,
&client_adv_handler,
learning);
core =
- GNUNET_CORE_connecT (cfg,
+ GNUNET_CORE_connect (cfg,
NULL,
&core_init,
&connect_handler,
diff --git a/src/hostlist/gnunet-daemon-hostlist_client.c b/src/hostlist/gnunet-daemon-hostlist_client.c
index c1a2c27218..a973fcc280 100644
--- a/src/hostlist/gnunet-daemon-hostlist_client.c
+++ b/src/hostlist/gnunet-daemon-hostlist_client.c
@@ -1548,8 +1548,8 @@ save_hostlist_file (int shutdown)
int
GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c,
struct GNUNET_STATISTICS_Handle *st,
- GNUNET_CORE_ConnecTEventHandler *ch,
- GNUNET_CORE_DisconnecTEventHandler *dh,
+ GNUNET_CORE_ConnectEventHandler *ch,
+ GNUNET_CORE_DisconnectEventHandler *dh,
GNUNET_HOSTLIST_UriHandler *msgh,
int learn)
{
diff --git a/src/hostlist/gnunet-daemon-hostlist_client.h b/src/hostlist/gnunet-daemon-hostlist_client.h
index dd80d4a488..e41b90876c 100644
--- a/src/hostlist/gnunet-daemon-hostlist_client.h
+++ b/src/hostlist/gnunet-daemon-hostlist_client.h
@@ -53,8 +53,8 @@ typedef void
int
GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c,
struct GNUNET_STATISTICS_Handle *st,
- GNUNET_CORE_ConnecTEventHandler *ch,
- GNUNET_CORE_DisconnecTEventHandler *dh,
+ GNUNET_CORE_ConnectEventHandler *ch,
+ GNUNET_CORE_DisconnectEventHandler *dh,
GNUNET_HOSTLIST_UriHandler *msgh,
int learn);
diff --git a/src/hostlist/gnunet-daemon-hostlist_server.c b/src/hostlist/gnunet-daemon-hostlist_server.c
index b01dbc09ed..48c1a56221 100644
--- a/src/hostlist/gnunet-daemon-hostlist_server.c
+++ b/src/hostlist/gnunet-daemon-hostlist_server.c
@@ -644,7 +644,7 @@ int
GNUNET_HOSTLIST_server_start (const struct GNUNET_CONFIGURATION_Handle *c,
struct GNUNET_STATISTICS_Handle *st,
struct GNUNET_CORE_Handle *co,
- GNUNET_CORE_ConnecTEventHandler *server_ch,
+ GNUNET_CORE_ConnectEventHandler *server_ch,
int advertise)
{
unsigned long long port;
diff --git a/src/hostlist/gnunet-daemon-hostlist_server.h b/src/hostlist/gnunet-daemon-hostlist_server.h
index f18ad0ca2d..d9f778a4bc 100644
--- a/src/hostlist/gnunet-daemon-hostlist_server.h
+++ b/src/hostlist/gnunet-daemon-hostlist_server.h
@@ -46,7 +46,7 @@ int
GNUNET_HOSTLIST_server_start (const struct GNUNET_CONFIGURATION_Handle *c,
struct GNUNET_STATISTICS_Handle *st,
struct GNUNET_CORE_Handle *core,
- GNUNET_CORE_ConnecTEventHandler *server_ch,
+ GNUNET_CORE_ConnectEventHandler *server_ch,
int advertise);
diff --git a/src/hostlist/test_gnunet_daemon_hostlist_learning.c b/src/hostlist/test_gnunet_daemon_hostlist_learning.c
index 48689e2592..88ad22a1ab 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist_learning.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist_learning.c
@@ -125,12 +125,12 @@ shutdown_testcase ()
}
if (NULL != adv_peer.core)
{
- GNUNET_CORE_disconnecT (adv_peer.core);
+ GNUNET_CORE_disconnect (adv_peer.core);
adv_peer.core = NULL;
}
if (NULL != learn_peer.core)
{
- GNUNET_CORE_disconnecT (learn_peer.core);
+ GNUNET_CORE_disconnect (learn_peer.core);
learn_peer.core = NULL;
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -432,7 +432,7 @@ setup_learn_peer (struct PeerContext *p,
}
GNUNET_free (filename);
}
- p->core = GNUNET_CORE_connecT (p->cfg,
+ p->core = GNUNET_CORE_connect (p->cfg,
NULL,
NULL,
NULL,