aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/private.h
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/private.h
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 'lang/python/private.h')
-rw-r--r--lang/python/private.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/lang/python/private.h b/lang/python/private.h
new file mode 100644
index 00000000..cb21f060
--- /dev/null
+++ b/lang/python/private.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2016 g10 Code GmbH
+ *
+ * This file is part of GPGME.
+ *
+ * GPGME is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * GPGME is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <gpgme.h>
+
+#ifndef _PYME_PRIVATE_H_
+#define _PYME_PRIVATE_H_
+
+void pygpgme_exception_init(void);
+gpgme_error_t pygpgme_exception2code(void);
+
+PyObject *object_to_gpgme_t(PyObject *input, const char *objtype, int argnum);
+PyObject *object_to_gpgme_data_t(PyObject *input, int argnum,
+ gpgme_data_t *wrapper,
+ PyObject **bytesio, Py_buffer *view);
+
+PyObject *pygpgme_wrap_fragile_result(PyObject *fragile, const char *classname);
+
+gpgme_error_t pyEditCb(void *opaque, gpgme_status_code_t status,
+ const char *args, int fd);
+
+#endif /* _PYME_PRIVATE_H_ */