diff options
author | Justus Winter <[email protected]> | 2016-07-28 08:20:20 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-07-28 08:23:32 +0000 |
commit | 3d4dc3f0218234a27103bdb6f93b17c0703b71a2 (patch) | |
tree | 78fe738389557a8e388cc660c6373877662f08f0 /lang/python/gpgme.i | |
parent | Fix including nil bytes in keylist output. (diff) | |
download | gpgme-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.i | 4 |
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" |