helper exception callback lesser parameters
[oweals/gnunet.git] / src / include / gnunet_gns_service.h
index a138e96f9d8475285f9122ca9e97939304bda09b..618d3c2c2787d3dc6b955fc6cb7d0de309df1d5c 100644 (file)
@@ -52,13 +52,19 @@ extern "C"
 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
@@ -195,6 +201,15 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle,
                          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 ******************* */
 
 
@@ -250,6 +265,15 @@ GNUNET_GNS_shorten_zone (struct GNUNET_GNS_Handle *handle,
                          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 ******************* */
 
 
@@ -279,6 +303,15 @@ GNUNET_GNS_get_authority (struct GNUNET_GNS_Handle *handle,
                     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