optimize mqm_head scans by avoiding constantly scanning over definitively non-ready...
[oweals/gnunet.git] / src / cadet / gnunet-service-cadet-new_dht.h
index ff3923790516f78f1ed542bfccfc55915c58cec8..5d7ab29a067ebed4da138cc4614fd2600f7777a9 100644 (file)
@@ -46,18 +46,6 @@ extern "C"
 struct GCD_search_handle;
 
 
-/**
- * Callback called on each path found over the DHT.
- *
- * @param cls Closure.
- * @param path An unchecked, unoptimized path to the target node.
- *             After callback will no longer be valid, unless #GCPP_acquire() is called!
- */
-typedef void
-(*GCD_search_callback) (void *cls,
-                        struct CadetPeerPath *path);
-
-
 /**
  * Initialize the DHT subsystem.
  *
@@ -66,6 +54,7 @@ typedef void
 void
 GCD_init (const struct GNUNET_CONFIGURATION_Handle *c);
 
+
 /**
  * Shut down the DHT subsystem.
  */
@@ -73,18 +62,21 @@ void
 GCD_shutdown (void);
 
 
+/**
+ * Function called by the HELLO subsystem whenever OUR hello
+ * changes. Re-triggers the DHT PUT immediately.
+ */
+void
+GCD_hello_update (void);
+
 /**
  * Search DHT for paths to @a peeR_id
  *
  * @param peer_id peer to search for
- * @param callback function to call with results
- * @param callback_cls closure for @a callback
  * @return handle to abort search
  */
 struct GCD_search_handle *
-GCD_search (const struct GNUNET_PeerIdentity *peer_id,
-            GCD_search_callback callback,
-            void *callback_cls);
+GCD_search (const struct GNUNET_PeerIdentity *peer_id);
 
 
 /**