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!
- */
-typedef void
-(*GCD_search_callback) (void *cls,
- const struct CadetPeerPath *path);
-
-
/**
* Initialize the DHT subsystem.
*
void
GCD_init (const struct GNUNET_CONFIGURATION_Handle *c);
+
/**
* Shut down the DHT subsystem.
*/
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);
/**