Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2014 20:41:16 +0000 (UTC)
From:      Dag-Erling Smørgrav <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266193 - in head/contrib/ldns: . ldns
Message-ID:  <201405152041.s4FKfGQI095190@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405152041.s4FKfGQI095190>