summaryrefslogtreecommitdiff
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)
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);
/**
- * Opaque handle to stop incremental validation address callbacks.
- */
-struct GST_ValidationIteratorContext;
-
-
-/**
* Function called for each address (or address status change) that
* the validation module is aware of (for the given target).
*
@@ -128,32 +122,18 @@ typedef void (*GST_ValidationAddressCallback)(void *cls,
/**
* Call the given function for each address for the given target.
- * Can either give a snapshot (synchronous API) or be continuous.
*
* @param target peer information is requested for
- * @param snapshot_only GNUNET_YES to iterate over addresses once, GNUNET_NO to
- * continue to give information about addresses as it evolves
* @param cb function to call; will not be called after this function returns
* if snapshot_only is GNUNET_YES
* @param cb_cls closure for 'cb'
* @return context to cancel, NULL if 'snapshot_only' is GNUNET_YES
*/
-struct GST_ValidationIteratorContext *
+void
GST_validation_get_addresses (const struct GNUNET_PeerIdentity *target,
- int snapshot_only,
GST_ValidationAddressCallback cb,
void *cb_cls);
-/**
- * Cancel an active validation address iteration.
- *
- * @param ctx the context of the operation that is cancelled
- */
-void
-GST_validation_get_addresses_cancel (struct GST_ValidationIteratorContext *ctx);
-
-
-
#endif
/* end of file gnunet-service-transport_validation.h */