aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-12 10:00:39 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-12 10:00:39 +0000
commit180f2e637029d045e3c72dc3e13fddb1f9f30141 (patch)
tree91356b1fe1c93c8ff69f6136d454d5d12e5978a2 /src/transport/gnunet-service-transport_validation.h
parentf76896d09afabb721219d3217037cc7a7f26d570 (diff)
downloadgnunet-180f2e637029d045e3c72dc3e13fddb1f9f30141.tar.gz
gnunet-180f2e637029d045e3c72dc3e13fddb1f9f30141.zip
moving API around to make ATS implementable and separable
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.h')
-rw-r--r--src/transport/gnunet-service-transport_validation.h22
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 */
100struct 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 */
141struct GST_ValidationIteratorContext * 132void
142GST_validation_get_addresses (const struct GNUNET_PeerIdentity *target, 133GST_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 */
153void
154GST_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 */