From: Karel Slany Date: Wed, 28 Aug 2013 13:13:16 +0000 (+0200) Subject: pyLDNS: Removed ldns_pkt.set_searchlist_count(). X-Git-Tag: release-1.6.17rc1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b3ce0dee1a7d71d2fa79f9a478f7859b314c44b;p=thirdparty%2Fldns.git pyLDNS: Removed ldns_pkt.set_searchlist_count(). The underlying C function is marked static and therefore not accessible. --- diff --git a/contrib/python/Changelog b/contrib/python/Changelog index d6f549bc..209005ab 100644 --- a/contrib/python/Changelog +++ b/contrib/python/Changelog @@ -1,7 +1,7 @@ 1.7.0 * Fixed memory leaks when destroying ldns_resolver. - * Removed ldns_pkt.section_count() because it is marked static in the - library. + * Removed ldns_pkt.section_count(), ldns_pkt.set_searchlist_count() + because it is marked static in the library. * Added ldns_pkt.new(). * Marked as returning new object ldns_pkt.get_section_clone(), ldns_resolver.get_addr_by_name(), ldns_resolver.get_name_by_addr(), diff --git a/contrib/python/ldns_resolver.i b/contrib/python/ldns_resolver.i index b2dd1558..a110d7e6 100644 --- a/contrib/python/ldns_resolver.i +++ b/contrib/python/ldns_resolver.i @@ -854,18 +854,20 @@ record." #retvals: ldns_pkt * def searchlist(self): - """What is the searchlist as used by the resolver. + """ + What is the search-list as used by the resolver. - :return: (ldns_rdf \*\*) a ldns_rdf pointer to a list of the addresses + :return: (ldns_rdf \*\*) A ldns_rdf pointer to a list of the addresses. """ return _ldns.ldns_resolver_searchlist(self) #parameters: const ldns_resolver *, #retvals: ldns_rdf \*\* def searchlist_count(self): - """Return the resolver's searchlist count. + """ + Return the resolver's search-list count. - :return: (size_t) the searchlist count + :return: (size_t) The search-list count. """ return _ldns.ldns_resolver_searchlist_count(self) #parameters: const ldns_resolver *, @@ -1138,11 +1140,6 @@ record." #parameters: ldns_resolver *,size_t *, #retvals: - def set_searchlist_count(self,c): - _ldns.ldns_resolver_set_searchlist_count(self,c) - #parameters: ldns_resolver *,size_t, - #retvals: - def set_timeout(self,timeout): """Set the resolver's socket time out when talking to remote hosts.