diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-14 14:26:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-14 14:26:33 +0000 |
commit | ce440f071e48bbc75ff797f8a37662996c4af57a (patch) | |
tree | 4152ae6505e4eae8ce88b72eecb7b59197b01cfe /src/transport/gnunet-service-transport_blacklist.h | |
parent | a2ed50e8e82e1d4f60302c30f9d748f7698b7cec (diff) | |
download | gnunet-ce440f071e48bbc75ff797f8a37662996c4af57a.tar.gz gnunet-ce440f071e48bbc75ff797f8a37662996c4af57a.zip |
LRN: Fix deps in transport
Diffstat (limited to 'src/transport/gnunet-service-transport_blacklist.h')
-rw-r--r-- | src/transport/gnunet-service-transport_blacklist.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_blacklist.h b/src/transport/gnunet-service-transport_blacklist.h index 03f059d81..6721b6aa2 100644 --- a/src/transport/gnunet-service-transport_blacklist.h +++ b/src/transport/gnunet-service-transport_blacklist.h | |||
@@ -80,7 +80,13 @@ GST_blacklist_handle_reply (void *cls, | |||
80 | void | 80 | void |
81 | GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer, | 81 | GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer, |
82 | const char *transport_name); | 82 | const char *transport_name); |
83 | 83 | ||
84 | |||
85 | /** | ||
86 | * Handle to an active blacklist check. | ||
87 | */ | ||
88 | struct GST_BlacklistCheck; | ||
89 | |||
84 | 90 | ||
85 | /** | 91 | /** |
86 | * Continuation called from a blacklist test. | 92 | * Continuation called from a blacklist test. |
@@ -102,14 +108,22 @@ typedef void (*GST_BlacklistTestContinuation)(void *cls, | |||
102 | * @param transport_name name of the transport to test, never NULL | 108 | * @param transport_name name of the transport to test, never NULL |
103 | * @param cont function to call with result | 109 | * @param cont function to call with result |
104 | * @param cont_cls closure for 'cont' | 110 | * @param cont_cls closure for 'cont' |
111 | * @return handle to the blacklist check | ||
105 | */ | 112 | */ |
106 | void | 113 | struct GST_BlacklistCheck * |
107 | GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer, | 114 | GST_blacklist_test_allowed (const struct GNUNET_PeerIdentity *peer, |
108 | const char *transport_name, | 115 | const char *transport_name, |
109 | GST_BlacklistTestContinuation cont, | 116 | GST_BlacklistTestContinuation cont, |
110 | void *cont_cls); | 117 | void *cont_cls); |
111 | 118 | ||
112 | 119 | ||
120 | /** | ||
121 | * Cancel a blacklist check. | ||
122 | * | ||
123 | * @param bc check to cancel | ||
124 | */ | ||
125 | void | ||
126 | GST_blacklist_test_cancel (struct GST_BlacklistCheck *bc); | ||
113 | 127 | ||
114 | #endif | 128 | #endif |
115 | /* end of file gnunet-service-transport_blacklist.h */ | 129 | /* end of file gnunet-service-transport_blacklist.h */ |