From 752d3597ef02a95efd693373132bf1e246f0edb0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 31 Jan 2017 09:44:29 +0100 Subject: 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 --- src/context.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/context.h') 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. */ -- cgit v1.2.3