Lines Matching defs:DnsQuestion
22 typedef struct DnsQuestion DnsQuestion;
29 struct DnsQuestion {
35 DnsQuestion *dns_question_new(unsigned n);
36 DnsQuestion *dns_question_ref(DnsQuestion *q);
37 DnsQuestion *dns_question_unref(DnsQuestion *q);
39 int dns_question_new_address(DnsQuestion **ret, int family, const char *name, bool convert_idna);
40 int dns_question_new_reverse(DnsQuestion **ret, int family, const union in_addr_union *a);
41 int dns_question_new_service(DnsQuestion **ret, const char *service, const char *type, const char *domain, bool with_txt, bool convert_idna);
43 int dns_question_add(DnsQuestion *q, DnsResourceKey *key);
45 int dns_question_matches_rr(DnsQuestion *q, DnsResourceRecord *rr, const char *search_domain);
46 int dns_question_matches_cname_or_dname(DnsQuestion *q, DnsResourceRecord *rr, const char* search_domain);
47 int dns_question_is_valid_for_query(DnsQuestion *q);
48 int dns_question_contains(DnsQuestion *a, const DnsResourceKey *k);
49 int dns_question_is_equal(DnsQuestion *a, DnsQuestion *b);
51 int dns_question_cname_redirect(DnsQuestion *q, const DnsResourceRecord *cname, DnsQuestion **ret);
53 const char *dns_question_first_name(DnsQuestion *q);
55 static inline unsigned dns_question_size(DnsQuestion *q) {
59 DEFINE_TRIVIAL_CLEANUP_FUNC(DnsQuestion*, dns_question_unref);