Lines Matching refs:DnsResourceKey
30 typedef struct DnsResourceKey DnsResourceKey;
81 struct DnsResourceKey {
88 * look up something, without allocating a full DnsResourceKey object
92 ((DnsResourceKey) { \
108 DnsResourceKey *key;
255 static inline const char* DNS_RESOURCE_KEY_NAME(const DnsResourceKey *key) {
262 return (char*) key + sizeof(DnsResourceKey);
286 DnsResourceKey* dns_resource_key_new(uint16_t class, uint16_t type, const char *name);
287 DnsResourceKey* dns_resource_key_new_redirect(const DnsResourceKey *key, const DnsResourceRecord *cname);
288 int dns_resource_key_new_append_suffix(DnsResourceKey **ret, DnsResourceKey *key, char *name);
289 DnsResourceKey* dns_resource_key_new_consume(uint16_t class, uint16_t type, char *name);
290 DnsResourceKey* dns_resource_key_ref(DnsResourceKey *key);
291 DnsResourceKey* dns_resource_key_unref(DnsResourceKey *key);
292 bool dns_resource_key_is_address(const DnsResourceKey *key);
293 int dns_resource_key_equal(const DnsResourceKey *a, const DnsResourceKey *b);
294 int dns_resource_key_match_rr(const DnsResourceKey *key, DnsResourceRecord *rr, const char *search_domain);
295 int dns_resource_key_match_cname_or_dname(const DnsResourceKey *key, const DnsResourceKey *cname, const char *search_domain);
296 int dns_resource_key_match_soa(const DnsResourceKey *key, const DnsResourceKey *soa);
297 int dns_resource_key_to_string(const DnsResourceKey *key, char **ret);
298 DEFINE_TRIVIAL_CLEANUP_FUNC(DnsResourceKey*, dns_resource_key_unref);
300 static inline bool dns_key_is_shared(const DnsResourceKey *key) {
304 bool dns_resource_key_reduce(DnsResourceKey **a, DnsResourceKey **b);
306 DnsResourceRecord* dns_resource_record_new(DnsResourceKey *key);