struct GNUNET_GNS_Handle;
/**
- * Handle to control a get operation.
+ * Handle to control a lookup operation.
*/
-struct GNUNET_GNS_LookupHandle;
+struct GNUNET_GNS_LookupRequest;
/**
- * Handle to control a shorten operation
+ * Handle to control a shorten operation.
*/
+struct GNUNET_GNS_ShortenRequest;
+
+/**
+ * Handle to control a get authority operation
+ */
+struct GNUNET_GNS_GetAuthRequest;
/**
* Record types
GNUNET_GNS_LookupResultProcessor proc,
void *proc_cls);
+
+/**
+ * Cancel pending lookup request
+ *
+ * @param lr the lookup request to cancel
+ */
+void
+GNUNET_GNS_cancel_lookup_request (struct GNUNET_GNS_LookupRequest *lr);
+
/* *************** Standard API: shorten ******************* */
GNUNET_GNS_ShortenResultProcessor proc,
void *proc_cls);
+
+/**
+ * Cancel pending shorten request
+ *
+ * @param sr the lookup request to cancel
+ */
+void
+GNUNET_GNS_cancel_shorten_request (struct GNUNET_GNS_ShortenRequest *sr);
+
/* *************** Standard API: get authority ******************* */
GNUNET_GNS_GetAuthResultProcessor proc,
void *proc_cls);
+
+/**
+ * Cancel pending get auth request
+ *
+ * @param gar the lookup request to cancel
+ */
+void
+GNUNET_GNS_cancel_get_auth_request (struct GNUNET_GNS_GetAuthRequest *gar);
+
#if 0 /* keep Emacsens' auto-indent happy */
{
#endif