aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_blacklist.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-19 01:08:03 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-19 01:08:03 +0000
commitf735158d94616b75ade351a3cce226483b8af55e (patch)
tree1cd9732b99cc6437fec7751b8f3c9ef28f0371c9 /src/transport/gnunet-service-transport_blacklist.h
parentd769049a7db56037ea4aff3d9d8a8d42a373ec9c (diff)
downloadgnunet-f735158d94616b75ade351a3cce226483b8af55e.tar.gz
gnunet-f735158d94616b75ade351a3cce226483b8af55e.zip
-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
Diffstat (limited to 'src/transport/gnunet-service-transport_blacklist.h')
-rw-r--r--src/transport/gnunet-service-transport_blacklist.h25
1 files changed, 14 insertions, 11 deletions
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 @@
38 */ 38 */
39void 39void
40GST_blacklist_start (struct GNUNET_SERVER_Handle *server, 40GST_blacklist_start (struct GNUNET_SERVER_Handle *server,
41 const struct GNUNET_CONFIGURATION_Handle *cfg, 41 const struct GNUNET_CONFIGURATION_Handle *cfg,
42 const struct GNUNET_PeerIdentity *my_id); 42 const struct GNUNET_PeerIdentity *my_id);
43 43
44 44
45/** 45/**
@@ -59,7 +59,8 @@ GST_blacklist_stop (void);
59 * @param message the blacklist-init message that was sent 59 * @param message the blacklist-init message that was sent
60 */ 60 */
61void 61void
62GST_blacklist_handle_init (void *cls, struct GNUNET_SERVER_Client *client, 62GST_blacklist_handle_init (void *cls,
63 struct GNUNET_SERVER_Client *client,
63 const struct GNUNET_MessageHeader *message); 64 const struct GNUNET_MessageHeader *message);
64 65
65 66
@@ -71,7 +72,8 @@ GST_blacklist_handle_init (void *cls, struct GNUNET_SERVER_Client *client,
71 * @param message the blacklist-init message that was sent 72 * @param message the blacklist-init message that was sent
72 */ 73 */
73void 74void
74GST_blacklist_handle_reply (void *cls, struct GNUNET_SERVER_Client *client, 75GST_blacklist_handle_reply (void *cls,
76 struct GNUNET_SERVER_Client *client,
75 const struct GNUNET_MessageHeader *message); 77 const struct GNUNET_MessageHeader *message);
76 78
77 79
@@ -97,12 +99,13 @@ struct GST_BlacklistCheck;
97 * 99 *
98 * @param cls closure 100 * @param cls closure
99 * @param peer identity of peer that was tested 101 * @param peer identity of peer that was tested
100 * @param result GNUNET_OK if the connection is allowed, 102 * @param result #GNUNET_OK if the connection is allowed,
101 * GNUNET_NO if not 103 * #GNUNET_NO if not
102 */ 104 */
103typedef void (*GST_BlacklistTestContinuation) (void *cls, 105typedef void
104 const struct GNUNET_PeerIdentity 106(*GST_BlacklistTestContinuation) (void *cls,
105 * peer, int result); 107 const struct GNUNET_PeerIdentity *peer,
108 int result);
106 109
107 110
108/** 111/**
@@ -111,9 +114,9 @@ typedef void (*GST_BlacklistTestContinuation) (void *cls,
111 * @param peer the identity of the peer to test 114 * @param peer the identity of the peer to test
112 * @param transport_name name of the transport to test, never NULL 115 * @param transport_name name of the transport to test, never NULL
113 * @param cont function to call with result 116 * @param cont function to call with result
114 * @param cont_cls closure for 'cont' 117 * @param cont_cls closure for @a cont
115 * @return handle to the blacklist check, NULL if the decision 118 * @return handle to the blacklist check, NULL if the decision
116 * was made instantly and 'cont' was already called 119 * was made instantly and @a cont was already called
117 */ 120 */
118struct GST_BlacklistCheck * 121struct GST_BlacklistCheck *
119GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer, 122GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer,