aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/gpgme.i
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-07-28 08:20:20 +0000
committerJustus Winter <[email protected]>2016-07-28 08:23:32 +0000
commit3d4dc3f0218234a27103bdb6f93b17c0703b71a2 (patch)
tree78fe738389557a8e388cc660c6373877662f08f0 /lang/python/gpgme.i
parentFix including nil bytes in keylist output. (diff)
downloadgpgme-3d4dc3f0218234a27103bdb6f93b17c0703b71a2.tar.gz
gpgme-3d4dc3f0218234a27103bdb6f93b17c0703b71a2.zip
python: Expose less functions to the Python world.
* lang/python/Makefile.am (EXTRA_DIST, COPY_FILES): Add new file. * lang/python/gpgme.i: Include new file and add comments. * lang/python/helpers.c: Include new file. * lang/python/helpers.h: Move functions we do not need to expose... * lang/python/private.h: ... here. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--lang/python/gpgme.i4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/python/gpgme.i b/lang/python/gpgme.i
index c1e00740..2b186c4f 100644
--- a/lang/python/gpgme.i
+++ b/lang/python/gpgme.i
@@ -476,8 +476,10 @@ struct _gpgme_sig_notation
%}
FILE *fdopen(int fildes, const char *mode);
+/* We include both headers in the generated c code... */
%{
#include "helpers.h"
+#include "private.h"
/* SWIG support for helpers.c */
PyObject *
@@ -499,4 +501,6 @@ pygpgme_unwrap_gpgme_ctx_t(PyObject *wrapped)
}
%}
+/* ... but only the public definitions here. They will be exposed to
+ the Python world, so let's be careful. */
%include "helpers.h"