aboutsummaryrefslogtreecommitdiffstats
path: root/agent/agent.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-08-30 05:48:56 +0000
committerNIIBE Yutaka <[email protected]>2023-08-30 05:48:56 +0000
commit76a2f180286e6cb10fd7075994512a0028d4eb2c (patch)
tree720c82bcc10442e211a14473886e561ed86480c5 /agent/agent.h
parentagent: Have a thread monitoring parent PID and homedir. (diff)
downloadgnupg-76a2f180286e6cb10fd7075994512a0028d4eb2c.tar.gz
gnupg-76a2f180286e6cb10fd7075994512a0028d4eb2c.zip
agent: Better interaction between main loop and cache expiration.
* agent/agent.h (agent_cache_housekeeping): Remove. (agent_cache_expiration): New. * agent/cache.c (agent_cache_housekeeping): Remove. (agent_cache_expiration): New. * agent/gpg-agent.c (TIMERTICK_INTERVAL): Remove. (handle_tick): Remove. (handle_connections): Call agent_cache_expiration and use the timeout value determined by the call. -- GnuPG-bug-id: 6681 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/agent.h')
-rw-r--r--agent/agent.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/agent.h b/agent/agent.h
index 69a1d5ff5..3bedab121 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -515,7 +515,7 @@ int agent_clear_passphrase (ctrl_t ctrl,
/*-- cache.c --*/
void initialize_module_cache (void);
void deinitialize_module_cache (void);
-void agent_cache_housekeeping (void);
+struct timespec *agent_cache_expiration (void);
void agent_flush_cache (int pincache_only);
int agent_put_cache (ctrl_t ctrl, const char *key, cache_mode_t cache_mode,
const char *data, int ttl);