From 237db7751862b973800c0baccc92b928313b6024 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 11 Jul 2019 10:42:25 +0200 Subject: [PATCH] =?utf8?q?SWIG4.0=20support=20from=20Jitka=20Plesn=C3=ADko?= =?utf8?q?v=C3=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- contrib/python/ldns_key.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/python/ldns_key.i b/contrib/python/ldns_key.i index 93f09c65..f95b030f 100644 --- a/contrib/python/ldns_key.i +++ b/contrib/python/ldns_key.i @@ -41,7 +41,7 @@ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_key), SWIGTYPE_p_ldns_struct_key, SWIG_POINTER_OWN | 0 )); } -%exception ldns_key_set_pubkey_owner(ldns_key *k, ldns_rdf *r) %{ $action Py_INCREF(obj1); %} +%typemap(argout) ldns_rdf *r "Py_INCREF($input);" %nodefaultctor ldns_struct_key; //no default constructor & destructor %nodefaultdtor ldns_struct_key; -- 2.47.3