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-04-17 01:43:30 +0000
commit7e46a5e20c5e75c7a297047b5879f4a4d45e9d7c (patch)
tree5a2ca64e1c9e1e459e34e8b97c485d29db61bc99 /src/context.h
parentMake use of user passphrase handler during genkey. (diff)
downloadgpgme-7e46a5e20c5e75c7a297047b5879f4a4d45e9d7c.tar.gz
gpgme-7e46a5e20c5e75c7a297047b5879f4a4d45e9d7c.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 '')
-rw-r--r--src/context.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h
index 745ffa89..a2977fc8 100644
--- a/src/context.h
+++ b/src/context.h
@@ -132,6 +132,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;