ldns_axfr_abort is apparently an undocumented API function. Unstaticize

and add a prototype + documentation to the relevant header.
This commit is contained in:
Dag-Erling Smørgrav 2014-05-15 20:41:16 +00:00
parent d107305190
commit daf4c72f7e
2 changed files with 7 additions and 1 deletions

View File

@ -739,6 +739,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

View File

@ -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 */