diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-28 00:47:17 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2012-06-28 00:47:17 +0000 |
commit | 146d71432ed366ccd3e576f4b3e261ace67cf757 (patch) | |
tree | 23d1bc94cfabd932a860c1b7a465a383dc96101b /src/gns/gnunet-service-gns_resolver.h | |
parent | e5b1e32c9b441c00fbd7aed2a060583388bdd441 (diff) | |
download | gnunet-146d71432ed366ccd3e576f4b3e261ace67cf757.tar.gz gnunet-146d71432ed366ccd3e576f4b3e261ace67cf757.zip |
-big commit, make new ns and valgrind happy
Diffstat (limited to 'src/gns/gnunet-service-gns_resolver.h')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.h b/src/gns/gnunet-service-gns_resolver.h index 5d9741beb..7f3d3799c 100644 --- a/src/gns/gnunet-service-gns_resolver.h +++ b/src/gns/gnunet-service-gns_resolver.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #define DHT_GNS_REPLICATION_LEVEL 5 | 11 | #define DHT_GNS_REPLICATION_LEVEL 5 |
12 | 12 | ||
13 | #define GNUNET_GNS_MAX_PARALLEL_LOOKUPS 500 | 13 | #define GNUNET_GNS_MAX_PARALLEL_LOOKUPS 500 |
14 | #define GNUNET_GNS_MAX_NS_TASKS 500 | ||
14 | 15 | ||
15 | /* | 16 | /* |
16 | * DLL to hold the authority chain | 17 | * DLL to hold the authority chain |
@@ -118,6 +119,13 @@ enum ResolutionStatus | |||
118 | */ | 119 | */ |
119 | struct ResolverHandle | 120 | struct ResolverHandle |
120 | { | 121 | { |
122 | |||
123 | /* DLL */ | ||
124 | struct ResolverHandle *next; | ||
125 | |||
126 | /* DLL */ | ||
127 | struct ResolverHandle *prev; | ||
128 | |||
121 | /* The name to resolve */ | 129 | /* The name to resolve */ |
122 | char name[MAX_DNS_NAME_LENGTH]; | 130 | char name[MAX_DNS_NAME_LENGTH]; |
123 | 131 | ||
@@ -210,6 +218,11 @@ struct ResolverHandle | |||
210 | */ | 218 | */ |
211 | unsigned long long id; | 219 | unsigned long long id; |
212 | 220 | ||
221 | /** | ||
222 | * Pending Namestore task | ||
223 | */ | ||
224 | struct GNUNET_NAMESTORE_QueueEntry *namestore_task; | ||
225 | |||
213 | }; | 226 | }; |
214 | 227 | ||
215 | 228 | ||
@@ -271,6 +284,9 @@ struct GetNameAuthorityHandle | |||
271 | { | 284 | { |
272 | /* the name to look up authority for */ | 285 | /* the name to look up authority for */ |
273 | char name[MAX_DNS_NAME_LENGTH]; | 286 | char name[MAX_DNS_NAME_LENGTH]; |
287 | |||
288 | /* the result */ | ||
289 | char result[MAX_DNS_NAME_LENGTH]; | ||
274 | 290 | ||
275 | /* Method to call on result */ | 291 | /* Method to call on result */ |
276 | GetAuthorityResultProcessor proc; | 292 | GetAuthorityResultProcessor proc; |
@@ -310,6 +326,21 @@ struct GetPseuAuthorityHandle | |||
310 | 326 | ||
311 | /* Head of the authority list */ | 327 | /* Head of the authority list */ |
312 | struct AuthorityChain *ahead; | 328 | struct AuthorityChain *ahead; |
329 | |||
330 | /* handle to namestore request */ | ||
331 | struct GNUNET_NAMESTORE_QueueEntry* namestore_task; | ||
332 | }; | ||
333 | |||
334 | /** | ||
335 | * Namestore queue entries in background | ||
336 | */ | ||
337 | struct NamestoreBGTask | ||
338 | { | ||
339 | /* node in heap */ | ||
340 | struct GNUNET_CONTAINER_HeapNode *node; | ||
341 | |||
342 | /* queue entry */ | ||
343 | struct GNUNET_NAMESTORE_QueueEntry *qe; | ||
313 | }; | 344 | }; |
314 | 345 | ||
315 | /** | 346 | /** |