aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/helpers.h
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-05-24 13:14:53 +0000
committerJustus Winter <[email protected]>2016-05-24 16:00:16 +0000
commit8b57f06e0c04f5c9b87a3c76618230d757412076 (patch)
treee7a0779263eb230b5e82cf2dd6abf2b9188655b3 /lang/python/helpers.h
parentpython: Improve docstring. (diff)
downloadgpgme-8b57f06e0c04f5c9b87a3c76618230d757412076.tar.gz
gpgme-8b57f06e0c04f5c9b87a3c76618230d757412076.zip
python: Support status callbacks.
* lang/python/helpers.c (pyStatusCb): New function. (pygpgme_set_status_cb): Likewise. * lang/python/helpers.h (pygpgme_set_status_cb): New prototype. * lang/python/pyme/core.py (Context.__init__): Initialize 'last_statuscb'. (Context._free_statuscb): New function. (Context.set_status_cb): Likewise. * lang/python/tests/t-callbacks.py: Test status callbacks. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/helpers.h')
-rw-r--r--lang/python/helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/python/helpers.h b/lang/python/helpers.h
index 4bd8ef81..5dd88a06 100644
--- a/lang/python/helpers.h
+++ b/lang/python/helpers.h
@@ -35,6 +35,8 @@ PyObject *pygpgme_raise_callback_exception(PyObject *self);
void pygpgme_set_passphrase_cb(gpgme_ctx_t ctx, PyObject *cb,
PyObject **freelater);
void pygpgme_set_progress_cb(gpgme_ctx_t ctx, PyObject *cb, PyObject **freelater);
+void pygpgme_set_status_cb(gpgme_ctx_t ctx, PyObject *cb,
+ PyObject **freelater);
gpgme_error_t pyEditCb(void *opaque, gpgme_status_code_t status,
const char *args, int fd);