From owner-svn-src-head@FreeBSD.ORG Thu May 15 20:41:16 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EFCDA50A; Thu, 15 May 2014 20:41:16 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DAD992148; Thu, 15 May 2014 20:41:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4FKfGI0095192; Thu, 15 May 2014 20:41:16 GMT (envelope-from des@svn.freebsd.org) Received: (from des@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4FKfGQI095190; Thu, 15 May 2014 20:41:16 GMT (envelope-from des@svn.freebsd.org) Message-Id: <201405152041.s4FKfGQI095190@svn.freebsd.org> From: Dag-Erling Smørgrav Date: Thu, 15 May 2014 20:41:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r266193 - in head/contrib/ldns: . ldns X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2014 20:41:17 -0000 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 */