diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_blacklist.h')
-rw-r--r-- | src/transport/gnunet-service-transport_blacklist.h | 35 |
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 | */ |
40 | void | 40 | void |
41 | GNUNET_TRANSPORT_handle_blacklist (void *cls, | 41 | GNUNET_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 | */ |
53 | void | 53 | void |
54 | GNUNET_TRANSPORT_handle_blacklist_notify (void *cls, | 54 | GNUNET_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 | */ | ||
65 | int | ||
66 | GNUNET_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 | */ | ||
75 | void | ||
76 | GNUNET_TRANSPORT_blacklist_init (struct GNUNET_SERVER_Handle *server, | ||
77 | struct GNUNET_SCHEDULER_Handle *s); | ||
78 | 57 | ||
79 | 58 | ||
80 | #endif | 59 | #endif |