]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Move ldns/rr.h import up a bit
authorChristoph Egger <christoph@debian.org>
Mon, 29 Aug 2016 23:57:45 +0000 (01:57 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Mon, 17 Oct 2016 15:22:43 +0000 (10:22 -0500)
Newer versions of SWIG seem to be more sensitive to ordering here. Fixes
import errors where LDNS_RR_* constants are used before they are
actually initialized.

contrib/python/ldns.i

index 35e076f8b7cccd8aa46ca277cf7e058276e224ce..562b3ec948890680da3c2f71ede698b9fad99e72 100644 (file)
@@ -139,6 +139,8 @@ uint32_t ldns_read_timeval_usec(struct timeval* t) {
 %include "ldns_resolver.i"
 %include "ldns_rr.i"
 
+%include <ldns/rr.h>
+
 %inline %{
 int Python_str_Check(PyObject *o) {
 #if PY_VERSION_HEX>=0x03000000
@@ -168,7 +170,6 @@ int Python_str_Check(PyObject *o) {
   %include <ldns/packet.h>
   %include <ldns/rdata.h>
   %include <ldns/resolver.h>
-  %include <ldns/rr.h>
 %include <ldns/str2host.h>
 %include <ldns/tsig.h>
   %include <ldns/update.h>