client_manager: add API for async operations
[oweals/gnunet.git] / src / include / gnunet_dnsstub_lib.h
index 3c4206f991a43406229c854f292fa3c636e759f4..f5ad5af426abd2fc2e3104019aaf720385616a49 100644 (file)
@@ -1,6 +1,6 @@
 /*
       This file is part of GNUnet
-      (C) 2012 Christian Grothoff (and other contributing authors)
+      Copyright (C) 2012 Christian Grothoff (and other contributing authors)
 
       GNUnet is free software; you can redistribute it and/or modify
       it under the terms of the GNU General Public License as published
 
 /**
  * Opaque handle to the stub resolver.
- */ 
+ */
 struct GNUNET_DNSSTUB_Context;
 
 /**
  * Opaque handle to a socket doing UDP requests.
- */ 
+ */
 struct GNUNET_DNSSTUB_RequestSocket;
 
 
@@ -113,4 +113,12 @@ GNUNET_DNSSTUB_resolve2 (struct GNUNET_DNSSTUB_Context *ctx,
                         void *rc_cls);
 
 
+/**
+ * Cancel DNS resolution.
+ *
+ * @param rs resolution to cancel
+ */
+void
+GNUNET_DNSSTUB_resolve_cancel (struct GNUNET_DNSSTUB_RequestSocket *rs);
+
 #endif