aboutsummaryrefslogtreecommitdiffstats
path: root/src/context.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-01-31 08:44:29 +0000
committerWerner Koch <[email protected]>2017-01-31 08:44:29 +0000
commit752d3597ef02a95efd693373132bf1e246f0edb0 (patch)
tree61fca51953b8bc3a68d3610e26b98f4f8458cc3a /src/context.h
parenttests: Reduce iterations / threads (diff)
downloadgpgme-752d3597ef02a95efd693373132bf1e246f0edb0.tar.gz
gpgme-752d3597ef02a95efd693373132bf1e246f0edb0.zip
core: Add new context flag "redraw".
* src/context.h (struct gpgme_context): New field 'redraw_suggested'. * src/op-support.c (_gpgme_op_reset): Clear REDRAW_SUGGESTED. * src/progress.c (_gpgme_progress_status_handler): Set REDRAW_SUGGESTED. * src/gpgme.c (gpgme_set_ctx_flag, gpgme_get_ctx_flag): Add "redraw". * tests/run-sign.c (main): Use it. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/context.h b/src/context.h
index 1a8698c3..d0542d9f 100644
--- a/src/context.h
+++ b/src/context.h
@@ -114,10 +114,14 @@ struct gpgme_context
/* True if session keys should be exported upon decryption. */
unsigned int export_session_keys : 1;
+ /* True if a Pinentry was launched during the last operation. This
+ * flag is cleared with each operation. */
+ unsigned int redraw_suggested : 1;
+
/* Flags for keylist mode. */
gpgme_keylist_mode_t keylist_mode;
- /* The current pinnetry mode. */
+ /* The current pinentry mode. */
gpgme_pinentry_mode_t pinentry_mode;
/* Number of certs to be included. */