aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-14 11:48:33 +0000
committerJustus Winter <[email protected]>2016-06-16 12:19:17 +0000
commit856bcfe2934237011984fab0bc69800a7c25c34b (patch)
tree06de1604878899fe01e5c014a22e94ee39e00fe2 /lang/python
parentpython: Simplify wrapping glue. (diff)
downloadgpgme-856bcfe2934237011984fab0bc69800a7c25c34b.tar.gz
gpgme-856bcfe2934237011984fab0bc69800a7c25c34b.zip
python: Avoid creating SWIG proxy classes.
* lang/python/Makefile.am (gpgme_wrap.c): Use '-builtin' to make SWIG generate builtin types for c types. * lang/python/gpgme.i (pygpgme_wrap_gpgme_data_t): Adapt slightly. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/Makefile.am2
-rw-r--r--lang/python/gpgme.i2
2 files changed, 2 insertions, 2 deletions
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index e156d46e..8f0e74f9 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -40,7 +40,7 @@ errors.i:
`$(GPG_ERROR_CONFIG) --prefix`/include/gpg-error.h >$@
gpgme_wrap.c pyme/pygpgme.py: gpgme.i errors.i gpgme.h copystamp
- $(SWIG) -python -py3 $(SWIGOPT) \
+ $(SWIG) -python -py3 -builtin $(SWIGOPT) \
-o $(builddir)/gpgme_wrap.c -outdir $(builddir)/pyme \
$<
diff --git a/lang/python/gpgme.i b/lang/python/gpgme.i
index 65cd2352..9cc2022c 100644
--- a/lang/python/gpgme.i
+++ b/lang/python/gpgme.i
@@ -373,7 +373,7 @@ FILE *fdopen(int fildes, const char *mode);
PyObject *
pygpgme_wrap_gpgme_data_t(gpgme_data_t data)
{
- return SWIG_NewPointerObj(data, SWIGTYPE_p_gpgme_data, 0);
+ return SWIG_Python_NewPointerObj(NULL, data, SWIGTYPE_p_gpgme_data, 0);
}
gpgme_ctx_t