summaryrefslogtreecommitdiff
path: root/src/gns/gns_tld_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-21 08:25:32 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-21 08:25:32 +0200
commit336159b59453619dfc9cad5e860462c594785dd9 (patch)
treeee1452c1f1f18f44365a8a4b541280c9d963e4fc /src/gns/gns_tld_api.c
parent4c7eae3c88bed613fb365920812dc60e0e364ee4 (diff)
make GNS cancel APIs return closure, can be convenient
Diffstat (limited to 'src/gns/gns_tld_api.c')
-rw-r--r--src/gns/gns_tld_api.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gns/gns_tld_api.c b/src/gns/gns_tld_api.c
index b053aa0c1..825b51d06 100644
--- a/src/gns/gns_tld_api.c
+++ b/src/gns/gns_tld_api.c
@@ -317,10 +317,13 @@ GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle *handle,
* 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);
@@ -333,6 +336,7 @@ GNUNET_GNS_lookup_with_tld_cancel (struct GNUNET_GNS_LookupWithTldRequest *ltr)
}
GNUNET_free (ltr->name);
GNUNET_free (ltr);
+ return ret;
}
/* end of gns_tld_api.c */