* Cancel pending lookup request
*
* @param lr the lookup request to cancel
+ * @return closure from the lookup result processor
*/
-void
+void *
GNUNET_GNS_lookup_cancel (struct GNUNET_GNS_LookupRequest *lr)
{
struct GNUNET_GNS_Handle *handle = lr->gns_handle;
+ void *ret;
GNUNET_CONTAINER_DLL_remove (handle->lookup_head,
handle->lookup_tail,
lr);
GNUNET_MQ_discard (lr->env);
+ ret = lr->proc_cls;
GNUNET_free (lr);
+ return ret;
}
* Cancel pending lookup request
*
* @param ltr the lookup request to cancel
+ * @return closure from the lookup result processor
*/
-void
+void *
GNUNET_GNS_lookup_with_tld_cancel (struct GNUNET_GNS_LookupWithTldRequest *ltr)
{
+ void *ret = ltr->lookup_proc_cls;
+
if (NULL != ltr->id_op)
{
GNUNET_IDENTITY_ego_lookup_cancel (ltr->id_op);
}
GNUNET_free (ltr->name);
GNUNET_free (ltr);
+ return ret;
}
/* end of gns_tld_api.c */
* Cancel pending lookup request
*
* @param lr the lookup request to cancel
+ * @return closure from the lookup result processor
*/
-void
+void *
GNUNET_GNS_lookup_cancel (struct GNUNET_GNS_LookupRequest *lr);
* Cancel pending lookup request
*
* @param ltr the lookup request to cancel
+ * @return closure from the lookup result processor
*/
-void
+void *
GNUNET_GNS_lookup_with_tld_cancel (struct GNUNET_GNS_LookupWithTldRequest *ltr);