diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.h')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/transport/gnunet-service-transport_validation.h b/src/transport/gnunet-service-transport_validation.h index 77c5164f9..5ab2e9163 100644 --- a/src/transport/gnunet-service-transport_validation.h +++ b/src/transport/gnunet-service-transport_validation.h | |||
@@ -95,12 +95,6 @@ GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello); | |||
95 | 95 | ||
96 | 96 | ||
97 | /** | 97 | /** |
98 | * Opaque handle to stop incremental validation address callbacks. | ||
99 | */ | ||
100 | struct GST_ValidationIteratorContext; | ||
101 | |||
102 | |||
103 | /** | ||
104 | * Function called for each address (or address status change) that | 98 | * Function called for each address (or address status change) that |
105 | * the validation module is aware of (for the given target). | 99 | * the validation module is aware of (for the given target). |
106 | * | 100 | * |
@@ -128,32 +122,18 @@ typedef void (*GST_ValidationAddressCallback)(void *cls, | |||
128 | 122 | ||
129 | /** | 123 | /** |
130 | * Call the given function for each address for the given target. | 124 | * Call the given function for each address for the given target. |
131 | * Can either give a snapshot (synchronous API) or be continuous. | ||
132 | * | 125 | * |
133 | * @param target peer information is requested for | 126 | * @param target peer information is requested for |
134 | * @param snapshot_only GNUNET_YES to iterate over addresses once, GNUNET_NO to | ||
135 | * continue to give information about addresses as it evolves | ||
136 | * @param cb function to call; will not be called after this function returns | 127 | * @param cb function to call; will not be called after this function returns |
137 | * if snapshot_only is GNUNET_YES | 128 | * if snapshot_only is GNUNET_YES |
138 | * @param cb_cls closure for 'cb' | 129 | * @param cb_cls closure for 'cb' |
139 | * @return context to cancel, NULL if 'snapshot_only' is GNUNET_YES | 130 | * @return context to cancel, NULL if 'snapshot_only' is GNUNET_YES |
140 | */ | 131 | */ |
141 | struct GST_ValidationIteratorContext * | 132 | void |
142 | GST_validation_get_addresses (const struct GNUNET_PeerIdentity *target, | 133 | GST_validation_get_addresses (const struct GNUNET_PeerIdentity *target, |
143 | int snapshot_only, | ||
144 | GST_ValidationAddressCallback cb, | 134 | GST_ValidationAddressCallback cb, |
145 | void *cb_cls); | 135 | void *cb_cls); |
146 | 136 | ||
147 | 137 | ||
148 | /** | ||
149 | * Cancel an active validation address iteration. | ||
150 | * | ||
151 | * @param ctx the context of the operation that is cancelled | ||
152 | */ | ||
153 | void | ||
154 | GST_validation_get_addresses_cancel (struct GST_ValidationIteratorContext *ctx); | ||
155 | |||
156 | |||
157 | |||
158 | #endif | 138 | #endif |
159 | /* end of file gnunet-service-transport_validation.h */ | 139 | /* end of file gnunet-service-transport_validation.h */ |