diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-16 20:03:37 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-19 12:41:01 +0100 |
commit | e5f00fda52a45ebd22716debf0d9af36fb6fce0a (patch) | |
tree | 1bfbc2c21510fafc912bcb5a0c82b87418fc6248 /src/dhtu | |
parent | 980eec8b79b63b445530cd42778a772e8a67b820 (diff) | |
download | gnunet-e5f00fda52a45ebd22716debf0d9af36fb6fce0a.tar.gz gnunet-e5f00fda52a45ebd22716debf0d9af36fb6fce0a.zip |
-DHT: get tests to pass
Diffstat (limited to 'src/dhtu')
-rw-r--r-- | src/dhtu/plugin_dhtu_gnunet.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/dhtu/plugin_dhtu_gnunet.c b/src/dhtu/plugin_dhtu_gnunet.c index 493fd5119..fe97f4919 100644 --- a/src/dhtu/plugin_dhtu_gnunet.c +++ b/src/dhtu/plugin_dhtu_gnunet.c | |||
@@ -234,9 +234,9 @@ hello_offered_cb (void *cls) | |||
234 | * @param address target address to connect to | 234 | * @param address target address to connect to |
235 | */ | 235 | */ |
236 | static void | 236 | static void |
237 | ip_try_connect (void *cls, | 237 | gnunet_try_connect (void *cls, |
238 | const struct GNUNET_PeerIdentity *pid, | 238 | const struct GNUNET_PeerIdentity *pid, |
239 | const char *address) | 239 | const char *address) |
240 | { | 240 | { |
241 | struct Plugin *plugin = cls; | 241 | struct Plugin *plugin = cls; |
242 | struct GNUNET_HELLO_Message *hello = NULL; | 242 | struct GNUNET_HELLO_Message *hello = NULL; |
@@ -272,8 +272,8 @@ ip_try_connect (void *cls, | |||
272 | * @param target connection to keep alive | 272 | * @param target connection to keep alive |
273 | */ | 273 | */ |
274 | static struct GNUNET_DHTU_PreferenceHandle * | 274 | static struct GNUNET_DHTU_PreferenceHandle * |
275 | ip_hold (void *cls, | 275 | gnunet_hold (void *cls, |
276 | struct GNUNET_DHTU_Target *target) | 276 | struct GNUNET_DHTU_Target *target) |
277 | { | 277 | { |
278 | struct Plugin *plugin = cls; | 278 | struct Plugin *plugin = cls; |
279 | struct GNUNET_DHTU_PreferenceHandle *ph; | 279 | struct GNUNET_DHTU_PreferenceHandle *ph; |
@@ -301,7 +301,7 @@ ip_hold (void *cls, | |||
301 | * @param target connection to keep alive | 301 | * @param target connection to keep alive |
302 | */ | 302 | */ |
303 | static void | 303 | static void |
304 | ip_drop (struct GNUNET_DHTU_PreferenceHandle *ph) | 304 | gnunet_drop (struct GNUNET_DHTU_PreferenceHandle *ph) |
305 | { | 305 | { |
306 | struct GNUNET_DHTU_Target *target = ph->target; | 306 | struct GNUNET_DHTU_Target *target = ph->target; |
307 | struct Plugin *plugin = target->plugin; | 307 | struct Plugin *plugin = target->plugin; |
@@ -339,12 +339,12 @@ ip_drop (struct GNUNET_DHTU_PreferenceHandle *ph) | |||
339 | * @param finished_cb_cls closure for @a finished_cb | 339 | * @param finished_cb_cls closure for @a finished_cb |
340 | */ | 340 | */ |
341 | static void | 341 | static void |
342 | ip_send (void *cls, | 342 | gnunet_send (void *cls, |
343 | struct GNUNET_DHTU_Target *target, | 343 | struct GNUNET_DHTU_Target *target, |
344 | const void *msg, | 344 | const void *msg, |
345 | size_t msg_size, | 345 | size_t msg_size, |
346 | GNUNET_SCHEDULER_TaskCallback finished_cb, | 346 | GNUNET_SCHEDULER_TaskCallback finished_cb, |
347 | void *finished_cb_cls) | 347 | void *finished_cb_cls) |
348 | { | 348 | { |
349 | struct GNUNET_MQ_Envelope *env; | 349 | struct GNUNET_MQ_Envelope *env; |
350 | struct GNUNET_MessageHeader *cmsg; | 350 | struct GNUNET_MessageHeader *cmsg; |
@@ -607,10 +607,10 @@ libgnunet_plugin_dhtu_gnunet_init (void *cls) | |||
607 | plugin->env = env; | 607 | plugin->env = env; |
608 | api = GNUNET_new (struct GNUNET_DHTU_PluginFunctions); | 608 | api = GNUNET_new (struct GNUNET_DHTU_PluginFunctions); |
609 | api->cls = plugin; | 609 | api->cls = plugin; |
610 | api->try_connect = &ip_try_connect; | 610 | api->try_connect = &gnunet_try_connect; |
611 | api->hold = &ip_hold; | 611 | api->hold = &gnunet_hold; |
612 | api->drop = &ip_drop; | 612 | api->drop = &gnunet_drop; |
613 | api->send = &ip_send; | 613 | api->send = &gnunet_send; |
614 | plugin->ats = GNUNET_ATS_connectivity_init (env->cfg); | 614 | plugin->ats = GNUNET_ATS_connectivity_init (env->cfg); |
615 | plugin->core = GNUNET_CORE_connect (env->cfg, | 615 | plugin->core = GNUNET_CORE_connect (env->cfg, |
616 | plugin, | 616 | plugin, |