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, 19 insertions, 16 deletions
diff --git a/src/transport/gnunet-service-transport_blacklist.h b/src/transport/gnunet-service-transport_blacklist.h index 7e88b3961..64a800664 100644 --- a/src/transport/gnunet-service-transport_blacklist.h +++ b/src/transport/gnunet-service-transport_blacklist.h | |||
@@ -34,13 +34,15 @@ | |||
34 | * | 34 | * |
35 | * @param server server used to accept clients from | 35 | * @param server server used to accept clients from |
36 | */ | 36 | */ |
37 | void GST_blacklist_start (struct GNUNET_SERVER_Handle *server); | 37 | void |
38 | GST_blacklist_start (struct GNUNET_SERVER_Handle *server); | ||
38 | 39 | ||
39 | 40 | ||
40 | /** | 41 | /** |
41 | * Stop blacklist subsystem. | 42 | * Stop blacklist subsystem. |
42 | */ | 43 | */ |
43 | void GST_blacklist_stop (void); | 44 | void |
45 | GST_blacklist_stop (void); | ||
44 | 46 | ||
45 | 47 | ||
46 | /** | 48 | /** |
@@ -52,8 +54,9 @@ void GST_blacklist_stop (void); | |||
52 | * @param client the client | 54 | * @param client the client |
53 | * @param message the blacklist-init message that was sent | 55 | * @param message the blacklist-init message that was sent |
54 | */ | 56 | */ |
55 | void GST_blacklist_handle_init (void *cls, struct GNUNET_SERVER_Client *client, | 57 | void |
56 | const struct GNUNET_MessageHeader *message); | 58 | GST_blacklist_handle_init (void *cls, struct GNUNET_SERVER_Client *client, |
59 | const struct GNUNET_MessageHeader *message); | ||
57 | 60 | ||
58 | /** | 61 | /** |
59 | * A blacklisting client has sent us reply. Process it. | 62 | * A blacklisting client has sent us reply. Process it. |
@@ -62,8 +65,9 @@ void GST_blacklist_handle_init (void *cls, struct GNUNET_SERVER_Client *client, | |||
62 | * @param client the client | 65 | * @param client the client |
63 | * @param message the blacklist-init message that was sent | 66 | * @param message the blacklist-init message that was sent |
64 | */ | 67 | */ |
65 | void GST_blacklist_handle_reply (void *cls, struct GNUNET_SERVER_Client *client, | 68 | void |
66 | const struct GNUNET_MessageHeader *message); | 69 | GST_blacklist_handle_reply (void *cls, struct GNUNET_SERVER_Client *client, |
70 | const struct GNUNET_MessageHeader *message); | ||
67 | 71 | ||
68 | /** | 72 | /** |
69 | * Add the given peer to the blacklist (for the given transport). | 73 | * Add the given peer to the blacklist (for the given transport). |
@@ -71,8 +75,9 @@ void GST_blacklist_handle_reply (void *cls, struct GNUNET_SERVER_Client *client, | |||
71 | * @param peer peer to blacklist | 75 | * @param peer peer to blacklist |
72 | * @param transport_name transport to blacklist for this peer, NULL for all | 76 | * @param transport_name transport to blacklist for this peer, NULL for all |
73 | */ | 77 | */ |
74 | void GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer, | 78 | void |
75 | const char *transport_name); | 79 | GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer, |
80 | const char *transport_name); | ||
76 | 81 | ||
77 | 82 | ||
78 | /** | 83 | /** |
@@ -104,13 +109,10 @@ typedef void (*GST_BlacklistTestContinuation) (void *cls, | |||
104 | * @return handle to the blacklist check, NULL if the decision | 109 | * @return handle to the blacklist check, NULL if the decision |
105 | * was made instantly and 'cont' was already called | 110 | * was made instantly and 'cont' was already called |
106 | */ | 111 | */ |
107 | struct GST_BlacklistCheck *GST_blacklist_test_allowed (const struct | 112 | struct GST_BlacklistCheck * |
108 | GNUNET_PeerIdentity | 113 | GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer, |
109 | *peer, | 114 | const char *transport_name, |
110 | const char | 115 | GST_BlacklistTestContinuation cont, void *cont_cls); |
111 | *transport_name, | ||
112 | GST_BlacklistTestContinuation | ||
113 | cont, void *cont_cls); | ||
114 | 116 | ||
115 | 117 | ||
116 | /** | 118 | /** |
@@ -118,7 +120,8 @@ struct GST_BlacklistCheck *GST_blacklist_test_allowed (const struct | |||
118 | * | 120 | * |
119 | * @param bc check to cancel | 121 | * @param bc check to cancel |
120 | */ | 122 | */ |
121 | void GST_blacklist_test_cancel (struct GST_BlacklistCheck *bc); | 123 | void |
124 | GST_blacklist_test_cancel (struct GST_BlacklistCheck *bc); | ||
122 | 125 | ||
123 | #endif | 126 | #endif |
124 | /* end of file gnunet-service-transport_blacklist.h */ | 127 | /* end of file gnunet-service-transport_blacklist.h */ |