aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_blacklist.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-04-18 20:23:40 +0000
committerChristian Grothoff <christian@grothoff.org>2010-04-18 20:23:40 +0000
commit541caf3dec54aaee621fed935e667f9ee423ef31 (patch)
tree6f80958e68541ce071bc557bbfc168644963c473 /src/transport/gnunet-service-transport_blacklist.h
parente8bc962b2ed43e194ba124537573da236786e82c (diff)
downloadgnunet-541caf3dec54aaee621fed935e667f9ee423ef31.tar.gz
gnunet-541caf3dec54aaee621fed935e667f9ee423ef31.zip
towards fixing blacklisting APIs and implementation
Diffstat (limited to 'src/transport/gnunet-service-transport_blacklist.h')
-rw-r--r--src/transport/gnunet-service-transport_blacklist.h35
1 files changed, 7 insertions, 28 deletions
diff --git a/src/transport/gnunet-service-transport_blacklist.h b/src/transport/gnunet-service-transport_blacklist.h
index 92f81a2e9..32e26431e 100644
--- a/src/transport/gnunet-service-transport_blacklist.h
+++ b/src/transport/gnunet-service-transport_blacklist.h
@@ -31,16 +31,16 @@
31#include "transport.h" 31#include "transport.h"
32 32
33/** 33/**
34 * Handle a request to blacklist a peer. 34 * Handle a request to start a blacklist.
35 * 35 *
36 * @param cls closure (always NULL) 36 * @param cls closure (always NULL)
37 * @param client identification of the client 37 * @param client identification of the client
38 * @param message the actual message 38 * @param message the actual message
39 */ 39 */
40void 40void
41GNUNET_TRANSPORT_handle_blacklist (void *cls, 41GNUNET_TRANSPORT_handle_blacklist_init (void *cls,
42 struct GNUNET_SERVER_Client *client, 42 struct GNUNET_SERVER_Client *client,
43 const struct GNUNET_MessageHeader *message); 43 const struct GNUNET_MessageHeader *message);
44 44
45 45
46/** 46/**
@@ -51,30 +51,9 @@ GNUNET_TRANSPORT_handle_blacklist (void *cls,
51 * @param message the actual message 51 * @param message the actual message
52 */ 52 */
53void 53void
54GNUNET_TRANSPORT_handle_blacklist_notify (void *cls, 54GNUNET_TRANSPORT_handle_blacklist_reply (void *cls,
55 struct GNUNET_SERVER_Client *client, 55 struct GNUNET_SERVER_Client *client,
56 const struct GNUNET_MessageHeader *message); 56 const struct GNUNET_MessageHeader *message);
57
58
59/**
60 * Is the given peer currently blacklisted?
61 *
62 * @param id identity of the peer
63 * @return GNUNET_YES if the peer is blacklisted, GNUNET_NO if not
64 */
65int
66GNUNET_TRANSPORT_blacklist_check (const struct GNUNET_PeerIdentity *id);
67
68
69/**
70 * Initialize the blacklisting subsystem.
71 *
72 * @param server server we handle requests from (transport service server)
73 * @param s scheduler to use
74 */
75void
76GNUNET_TRANSPORT_blacklist_init (struct GNUNET_SERVER_Handle *server,
77 struct GNUNET_SCHEDULER_Handle *s);
78 57
79 58
80#endif 59#endif