diff options
author | des <des@FreeBSD.org> | 2014-05-15 20:41:16 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2014-05-15 20:41:16 +0000 |
commit | 4529aff838a47e1c69b690d1a674e766485c0214 (patch) | |
tree | ddf2cdc270e866251e2bf58f5875a63393a4dfde /contrib/ldns | |
parent | 710d2272e09fab2d44b241178b2931e1f89dbd08 (diff) | |
download | FreeBSD-src-4529aff838a47e1c69b690d1a674e766485c0214.zip FreeBSD-src-4529aff838a47e1c69b690d1a674e766485c0214.tar.gz |
ldns_axfr_abort is apparently an undocumented API function. Unstaticize
and add a prototype + documentation to the relevant header.
Diffstat (limited to 'contrib/ldns')
-rw-r--r-- | contrib/ldns/ldns/resolver.h | 6 | ||||
-rw-r--r-- | contrib/ldns/resolver.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/contrib/ldns/ldns/resolver.h b/contrib/ldns/ldns/resolver.h index 26d4f48..f3f1371 100644 --- a/contrib/ldns/ldns/resolver.h +++ b/contrib/ldns/ldns/resolver.h @@ -740,6 +740,12 @@ void ldns_resolver_deep_free(ldns_resolver *res); ldns_rr* ldns_axfr_next(ldns_resolver *resolver); /** + * Abort a transfer that is in progress + * \param[in] resolver the resolver that is used + */ +void ldns_axfr_abort(ldns_resolver *resolver); + +/** * Returns true if the axfr transfer has completed (i.e. 2 SOA RRs and no errors were encountered * \param[in] resolver the resolver that is used * \return bool true if axfr transfer was completed without error diff --git a/contrib/ldns/resolver.c b/contrib/ldns/resolver.c index 447c0e3..16efc90 100644 --- a/contrib/ldns/resolver.c +++ b/contrib/ldns/resolver.c @@ -1372,7 +1372,7 @@ ldns_axfr_next(ldns_resolver *resolver) * library staying in an indetermined state because the socket for the * AXFR is never closed */ -static void +void ldns_axfr_abort(ldns_resolver *resolver) { /* Only abort if an actual AXFR is in progress */ |