X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/f6f450e2b1db4ae729c6df593dbbbff842bd6f3b..1b20b972ad32461778f0a68d970c55741a61aa27:/winstuff.h diff --git a/winstuff.h b/winstuff.h index b94f25d8..33b604ff 100644 --- a/winstuff.h +++ b/winstuff.h @@ -319,4 +319,16 @@ void EnableSizeTip(int bEnable); struct unicode_data; void init_ucs(Config *, struct unicode_data *); +/* + * pageantc.c needs to schedule callbacks for asynchronous agent + * requests. This has to be done differently in GUI and console, so + * there's an exported function used for the purpose. + * + * Also, we supply FLAG_SYNCAGENT to force agent requests to be + * synchronous in pscp and psftp. + */ +void agent_schedule_callback(void (*callback)(void *, void *, int), + void *callback_ctx, void *data, int len); +#define FLAG_SYNCAGENT 0x1000 + #endif