aboutsummaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-01-25 10:20:23 +0000
committerWerner Koch <[email protected]>2016-01-25 10:20:23 +0000
commitee87c653bf4b495714e8e6b024d0a8ace3a33452 (patch)
tree3ee9f5311b62b1943615db16a9f4f02c98a51e9c /agent/agent.h
parentspeedo: Allow use of SHA-256 checksums (diff)
downloadgnupg-ee87c653bf4b495714e8e6b024d0a8ace3a33452.tar.gz
gnupg-ee87c653bf4b495714e8e6b024d0a8ace3a33452.zip
agent: Send PROGRESS status lines to the client.
* agent/gpg-agent.c (struct progress_dispatch_s): New. (progress_dispatch_list): New. (main): Register libgcrypt pogress handler. (agent_libgcrypt_progress_cb): New. (agent_set_progress_cb): New. (unregister_progress_cb): New. (agent_deinit_default_ctrl): Call unregister. * agent/command.c (progress_cb): New. (start_command_handler): Register progress callback. -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'agent/agent.h')
-rw-r--r--agent/agent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h
index c7e14332c..c2726bbbc 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -336,6 +336,9 @@ typedef int (*lookup_ttl_t)(const char *hexgrip);
/*-- gpg-agent.c --*/
void agent_exit (int rc)
GPGRT_ATTR_NORETURN; /* Also implemented in other tools */
+void agent_set_progress_cb (void (*cb)(ctrl_t ctrl, const char *what,
+ int printchar, int current, int total),
+ ctrl_t ctrl);
gpg_error_t agent_copy_startup_env (ctrl_t ctrl);
const char *get_agent_socket_name (void);
const char *get_agent_ssh_socket_name (void);