svn commit: r266193 - in head/contrib/ldns: . ldns
Dag-Erling Smørgrav
des at FreeBSD.org
Thu May 15 20:41:17 UTC 2014
Author: des
Date: Thu May 15 20:41:16 2014
New Revision: 266193
URL: http://svnweb.freebsd.org/changeset/base/266193
Log:
ldns_axfr_abort is apparently an undocumented API function. Unstaticize
and add a prototype + documentation to the relevant header.
Modified:
head/contrib/ldns/ldns/resolver.h
head/contrib/ldns/resolver.c
Modified: head/contrib/ldns/ldns/resolver.h
==============================================================================
--- head/contrib/ldns/ldns/resolver.h Thu May 15 20:27:57 2014 (r266192)
+++ head/contrib/ldns/ldns/resolver.h Thu May 15 20:41:16 2014 (r266193)
@@ -740,6 +740,12 @@ void ldns_resolver_deep_free(ldns_resolv
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
Modified: head/contrib/ldns/resolver.c
==============================================================================
--- head/contrib/ldns/resolver.c Thu May 15 20:27:57 2014 (r266192)
+++ head/contrib/ldns/resolver.c Thu May 15 20:41:16 2014 (r266193)
@@ -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 */
More information about the svn-src-head
mailing list