From 3d4dc3f0218234a27103bdb6f93b17c0703b71a2 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 28 Jul 2016 10:20:20 +0200 Subject: 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 --- lang/python/gpgme.i | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lang/python/gpgme.i') 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" -- cgit v1.2.3