diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-22 21:48:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-23 02:00:40 +0200 |
commit | faa133f3aa7a18f26563dc5d6b95898cb315c37a (patch) | |
tree | 17b1a2aaba6b5a8e04e1fa361d5e9324ea249589 /src/resolve/resolved-dns-cache.h | |
parent | a3eca41994de42f5448b35e8815d3009b2b5df38 (diff) |
resolved: rework logic so that we can share transactions between queries of different clients
Diffstat (limited to 'src/resolve/resolved-dns-cache.h')
-rw-r--r-- | src/resolve/resolved-dns-cache.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resolve/resolved-dns-cache.h b/src/resolve/resolved-dns-cache.h index 8d1cf95342..1ede5bfd81 100644 --- a/src/resolve/resolved-dns-cache.h +++ b/src/resolve/resolved-dns-cache.h @@ -36,6 +36,8 @@ typedef struct DnsCache { } DnsCache; #include "resolved-dns-rr.h" +#include "resolved-dns-question.h" +#include "resolved-dns-answer.h" typedef struct DnsCacheItem { DnsResourceRecord *rr; @@ -50,8 +52,6 @@ void dns_cache_prune(DnsCache *c); void dns_cache_remove(DnsCache *c, DnsResourceKey *key); int dns_cache_put(DnsCache *c, DnsResourceRecord *rr, usec_t timestamp); -int dns_cache_put_rrs(DnsCache *c, DnsResourceRecord **rrs, unsigned n_rrs, usec_t timestamp); +int dns_cache_put_answer(DnsCache *c, DnsAnswer *answer, usec_t timestamp); -DnsCacheItem* dns_cache_lookup(DnsCache *c, DnsResourceKey *key); -DnsCacheItem* dns_cache_get(DnsCache *c, DnsResourceRecord *rr); -int dns_cache_lookup_many(DnsCache *c, DnsResourceKey *keys, unsigned n_keys, DnsResourceRecord ***rrs); +int dns_cache_lookup(DnsCache *c, DnsQuestion *q, DnsAnswer **ret); |