-fix tld guessing code
[oweals/gnunet.git] / src / gns / gnunet-service-gns_resolver.h
index e9cbf0d53d6adab47941d073081ef436856312fd..b24fd1274613095a8bc65e498cf50f663f6fc577 100644 (file)
@@ -36,10 +36,6 @@ struct AuthorityChain
 /* handle to a resolution process */
 struct ResolverHandle;
 
-/**
- * continuation called when cleanup of resolver finishes
- */
-typedef void (*ResolverCleanupContinuation) (void);
 
 /**
  * processor for a record lookup result
@@ -126,6 +122,12 @@ struct ResolverHandle
   /* DLL */
   struct ResolverHandle *prev;
 
+  /* Last record data found */
+  struct GNUNET_NAMESTORE_RecordData rd;
+
+  /* Number of last record data found */
+  unsigned int rd_count;
+
   /* The name to resolve */
   char name[MAX_DNS_NAME_LENGTH];
 
@@ -324,8 +326,8 @@ struct GetPseuAuthorityHandle
   /* timeout task for lookup */
   GNUNET_SCHEDULER_TaskIdentifier timeout;
 
-  /* Head of the authority list */
-  struct AuthorityChain *ahead;
+  /* Authority to shorten */
+  struct AuthorityChain *auth;
 
   /* handle to namestore request */
   struct GNUNET_NAMESTORE_QueueEntry* namestore_task;
@@ -366,11 +368,9 @@ gns_resolver_init(struct GNUNET_NAMESTORE_Handle *nh,
 
 /**
  * Cleanup resolver: Terminate pending lookups
- * 
- * @param cont continuation to call when finished
  */
 void
-gns_resolver_cleanup(ResolverCleanupContinuation cont);
+gns_resolver_cleanup(void);
 
 /**
  * Lookup of a record in a specific zone