aboutsummaryrefslogtreecommitdiffstats
path: root/src/context.h
diff options
context:
space:
mode:
authorBen Kibbey <[email protected]>2015-04-17 00:23:38 +0000
committerBen Kibbey <[email protected]>2015-08-15 22:19:27 +0000
commit4fadcf06ec8b0ebfb05c7622dbc3b73fd3c1bad9 (patch)
tree6bdfc09dfc56f20e8c0298eadd51d6aee051d5eb /src/context.h
parentMake use of user passphrase handler during genkey. (diff)
downloadgpgme-4fadcf06ec8b0ebfb05c7622dbc3b73fd3c1bad9.tar.gz
gpgme-4fadcf06ec8b0ebfb05c7622dbc3b73fd3c1bad9.zip
Add gpgme_set/get_status_cb().
* src/gpgme.h.in (gpgme_set_status_cb): New. (gpgme_get_status_cb): New. (gpgme_status_cb_t): New. * src/gpgme.c (gpgme_set_status_cb): New. (gpgme_get_status_cb): New. * src/context.h (status_cb): New. (status_cb_value): New. * src/gpgme.def: Export new symbols. * src/libgpgme.vers: Ditto. * doc/gpgme.texi: Document these new functions. -- This callback function is used to forward status messages from gpg back to the client.
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h
index 8cd86e9c..757d9b42 100644
--- a/src/context.h
+++ b/src/context.h
@@ -135,6 +135,10 @@ struct gpgme_context
gpgme_progress_cb_t progress_cb;
void *progress_cb_value;
+ /* The user provided status callback and its hook value. */
+ gpgme_status_cb_t status_cb;
+ void *status_cb_value;
+
/* A list of file descriptors in active use by the current
operation. */
struct fd_table fdt;