Commit 08c37d7e authored by Mickaël Turnel's avatar Mickaël Turnel

Add a function to access information of opaque struct

parent c8eaaf2e
......@@ -10100,7 +10100,7 @@ outgoing_try_another(nta_outgoing_t *orq)
}
else {
#if HAVE_MDNS
if (!orq->orq_agent->sa_resolver->res_mdns)
if (!sres_resolver_is_resolving_mdns(orq->orq_agent->sa_resolver))
outgoing_graylist(orq, sr->sr_done);
#endif
}
......
......@@ -953,8 +953,15 @@ int sres_resolver_set_timer_cb(sres_resolver_t *res,
}
#if HAVE_MDNS
int
sres_resolver_is_resolving_mdns(sres_resolver_t *resolver)
{
return resolver->res_mdns;
}
void
sres_resolver_mdns_set_socket(sres_resolver_t *resolver, int socket) {
sres_resolver_mdns_set_socket(sres_resolver_t *resolver, int socket)
{
resolver->res_mdns_socket = socket;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment