diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:46:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-15 21:46:35 +0000 |
commit | 502af2167f7c218366666ca4944bd7cc54b5b19a (patch) | |
tree | a91fec5cc9769d260640bd91c6633cb9cf395524 /src/transport/gnunet-service-transport_blacklist.h | |
parent | 03af5a603b7cc53432249d5854cd412aa90dde0d (diff) | |
download | gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.tar.gz gnunet-502af2167f7c218366666ca4944bd7cc54b5b19a.zip |
indentation
Diffstat (limited to 'src/transport/gnunet-service-transport_blacklist.h')
-rw-r--r-- | src/transport/gnunet-service-transport_blacklist.h | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/src/transport/gnunet-service-transport_blacklist.h b/src/transport/gnunet-service-transport_blacklist.h index 26309818d..4823d055d 100644 --- a/src/transport/gnunet-service-transport_blacklist.h +++ b/src/transport/gnunet-service-transport_blacklist.h | |||
@@ -34,15 +34,13 @@ | |||
34 | * | 34 | * |
35 | * @param server server used to accept clients from | 35 | * @param server server used to accept clients from |
36 | */ | 36 | */ |
37 | void | 37 | void GST_blacklist_start (struct GNUNET_SERVER_Handle *server); |
38 | GST_blacklist_start (struct GNUNET_SERVER_Handle *server); | ||
39 | 38 | ||
40 | 39 | ||
41 | /** | 40 | /** |
42 | * Stop blacklist subsystem. | 41 | * Stop blacklist subsystem. |
43 | */ | 42 | */ |
44 | void | 43 | void GST_blacklist_stop (void); |
45 | GST_blacklist_stop (void); | ||
46 | 44 | ||
47 | 45 | ||
48 | /** | 46 | /** |
@@ -56,8 +54,8 @@ GST_blacklist_stop (void); | |||
56 | */ | 54 | */ |
57 | void | 55 | void |
58 | GST_blacklist_handle_init (void *cls, | 56 | GST_blacklist_handle_init (void *cls, |
59 | struct GNUNET_SERVER_Client *client, | 57 | struct GNUNET_SERVER_Client *client, |
60 | const struct GNUNET_MessageHeader *message); | 58 | const struct GNUNET_MessageHeader *message); |
61 | 59 | ||
62 | /** | 60 | /** |
63 | * A blacklisting client has sent us reply. Process it. | 61 | * A blacklisting client has sent us reply. Process it. |
@@ -68,8 +66,8 @@ GST_blacklist_handle_init (void *cls, | |||
68 | */ | 66 | */ |
69 | void | 67 | void |
70 | GST_blacklist_handle_reply (void *cls, | 68 | GST_blacklist_handle_reply (void *cls, |
71 | struct GNUNET_SERVER_Client *client, | 69 | struct GNUNET_SERVER_Client *client, |
72 | const struct GNUNET_MessageHeader *message); | 70 | const struct GNUNET_MessageHeader *message); |
73 | 71 | ||
74 | /** | 72 | /** |
75 | * Add the given peer to the blacklist (for the given transport). | 73 | * Add the given peer to the blacklist (for the given transport). |
@@ -79,14 +77,14 @@ GST_blacklist_handle_reply (void *cls, | |||
79 | */ | 77 | */ |
80 | void | 78 | void |
81 | GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer, | 79 | GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer, |
82 | const char *transport_name); | 80 | const char *transport_name); |
83 | 81 | ||
84 | 82 | ||
85 | /** | 83 | /** |
86 | * Handle to an active blacklist check. | 84 | * Handle to an active blacklist check. |
87 | */ | 85 | */ |
88 | struct GST_BlacklistCheck; | 86 | struct GST_BlacklistCheck; |
89 | 87 | ||
90 | 88 | ||
91 | /** | 89 | /** |
92 | * Continuation called from a blacklist test. | 90 | * Continuation called from a blacklist test. |
@@ -96,9 +94,9 @@ struct GST_BlacklistCheck; | |||
96 | * @param result GNUNET_OK if the connection is allowed, | 94 | * @param result GNUNET_OK if the connection is allowed, |
97 | * GNUNET_NO if not | 95 | * GNUNET_NO if not |
98 | */ | 96 | */ |
99 | typedef void (*GST_BlacklistTestContinuation)(void *cls, | 97 | typedef void (*GST_BlacklistTestContinuation) (void *cls, |
100 | const struct GNUNET_PeerIdentity *peer, | 98 | const struct GNUNET_PeerIdentity |
101 | int result); | 99 | * peer, int result); |
102 | 100 | ||
103 | 101 | ||
104 | /** | 102 | /** |
@@ -111,20 +109,21 @@ typedef void (*GST_BlacklistTestContinuation)(void *cls, | |||
111 | * @return handle to the blacklist check, NULL if the decision | 109 | * @return handle to the blacklist check, NULL if the decision |
112 | * was made instantly and 'cont' was already called | 110 | * was made instantly and 'cont' was already called |
113 | */ | 111 | */ |
114 | struct GST_BlacklistCheck * | 112 | struct GST_BlacklistCheck *GST_blacklist_test_allowed (const struct |
115 | GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer, | 113 | GNUNET_PeerIdentity |
116 | const char *transport_name, | 114 | *peer, |
117 | GST_BlacklistTestContinuation cont, | 115 | const char |
118 | void *cont_cls); | 116 | *transport_name, |
119 | 117 | GST_BlacklistTestContinuation | |
118 | cont, void *cont_cls); | ||
119 | |||
120 | 120 | ||
121 | /** | 121 | /** |
122 | * Cancel a blacklist check. | 122 | * Cancel a blacklist check. |
123 | * | 123 | * |
124 | * @param bc check to cancel | 124 | * @param bc check to cancel |
125 | */ | 125 | */ |
126 | void | 126 | void GST_blacklist_test_cancel (struct GST_BlacklistCheck *bc); |
127 | GST_blacklist_test_cancel (struct GST_BlacklistCheck *bc); | ||
128 | 127 | ||
129 | #endif | 128 | #endif |
130 | /* end of file gnunet-service-transport_blacklist.h */ | 129 | /* end of file gnunet-service-transport_blacklist.h */ |