summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_resolve_dpag.c
blob: 98c5f9b64ecc7fb0a74aae9bdcd9eff1889820d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#include <s6-dns/s6dns-resolve.h>

int s6dns_resolve_dpag_r (genalloc *ds, char const *name, unsigned int len, uint16_t qtype, int qualif, s6dns_engine_t *dt, s6dns_rci_t const *rci, s6dns_debughook_t const *dbh, tain const *deadline, tain *stamp)
{
  s6dns_dpag_t data ;
  int r ;
  data.ds = *ds ;
  data.rtype = qtype ;
  r = s6dns_resolve_r(name, len, qtype, &s6dns_message_parse_answer_domain, &data, qualif, dt, rci, dbh, deadline, stamp) ;
  *ds = data.ds ;
  return r ;
}