From f735158d94616b75ade351a3cce226483b8af55e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Jan 2015 01:08:03 +0000 Subject: -towards improved ATS API, adding return value with address record when adding address, adding new subsystem with peer-to-address map to transport; causes various new assertions to fail, but no major regression -- not finished --- src/transport/gnunet-service-transport_blacklist.h | 25 ++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'src/transport/gnunet-service-transport_blacklist.h') diff --git a/src/transport/gnunet-service-transport_blacklist.h b/src/transport/gnunet-service-transport_blacklist.h index a0ae5a959..c635566be 100644 --- a/src/transport/gnunet-service-transport_blacklist.h +++ b/src/transport/gnunet-service-transport_blacklist.h @@ -38,8 +38,8 @@ */ void GST_blacklist_start (struct GNUNET_SERVER_Handle *server, - const struct GNUNET_CONFIGURATION_Handle *cfg, - const struct GNUNET_PeerIdentity *my_id); + const struct GNUNET_CONFIGURATION_Handle *cfg, + const struct GNUNET_PeerIdentity *my_id); /** @@ -59,7 +59,8 @@ GST_blacklist_stop (void); * @param message the blacklist-init message that was sent */ void -GST_blacklist_handle_init (void *cls, struct GNUNET_SERVER_Client *client, +GST_blacklist_handle_init (void *cls, + struct GNUNET_SERVER_Client *client, const struct GNUNET_MessageHeader *message); @@ -71,7 +72,8 @@ GST_blacklist_handle_init (void *cls, struct GNUNET_SERVER_Client *client, * @param message the blacklist-init message that was sent */ void -GST_blacklist_handle_reply (void *cls, struct GNUNET_SERVER_Client *client, +GST_blacklist_handle_reply (void *cls, + struct GNUNET_SERVER_Client *client, const struct GNUNET_MessageHeader *message); @@ -97,12 +99,13 @@ struct GST_BlacklistCheck; * * @param cls closure * @param peer identity of peer that was tested - * @param result GNUNET_OK if the connection is allowed, - * GNUNET_NO if not + * @param result #GNUNET_OK if the connection is allowed, + * #GNUNET_NO if not */ -typedef void (*GST_BlacklistTestContinuation) (void *cls, - const struct GNUNET_PeerIdentity - * peer, int result); +typedef void +(*GST_BlacklistTestContinuation) (void *cls, + const struct GNUNET_PeerIdentity *peer, + int result); /** @@ -111,9 +114,9 @@ typedef void (*GST_BlacklistTestContinuation) (void *cls, * @param peer the identity of the peer to test * @param transport_name name of the transport to test, never NULL * @param cont function to call with result - * @param cont_cls closure for 'cont' + * @param cont_cls closure for @a cont * @return handle to the blacklist check, NULL if the decision - * was made instantly and 'cont' was already called + * was made instantly and @a cont was already called */ struct GST_BlacklistCheck * GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer, -- cgit v1.2.3