-simplify logic
[oweals/gnunet.git] / src / transport / gnunet-service-transport_validation.h
index d7bbcd8beb60a3c2de10d63f105fb636476c30f9..7c91f8b010882f6cdb40177594bce6e79832b6d9 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2010,2011 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2010,2011 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -61,18 +61,6 @@ GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address,
                                 int in_use);
 
 
-/**
- * Query validation about the latest observed latency on a given
- * address.
- *
- * @param address the address
- * @return observed latency of the address, FOREVER if the address was
- *         never successfully validated
- */
-struct GNUNET_TIME_Relative
-GST_validation_get_address_latency (const struct GNUNET_HELLO_Address *address);
-
-
 /**
  * Function called to notify transport users that a neighbour peer changed its
  * active address.
@@ -143,6 +131,15 @@ int
 GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello);
 
 
+/**
+ * Validate an individual address.
+ *
+ * @param address address we should try to validate
+ */
+void
+GST_validation_handle_address (const struct GNUNET_HELLO_Address *address);
+
+
 /**
  * Function called for each address (or address status change) that
  * the validation module is aware of (for the given target).