X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/4e6d40912e43afdde39744815e30dd425a4849d3..4c80361f22171ba8b33e51257a1c7d764f65b3ed:/winstuff.h?ds=sidebyside diff --git a/winstuff.h b/winstuff.h index fed920bd..33b604ff 100644 --- a/winstuff.h +++ b/winstuff.h @@ -163,6 +163,7 @@ struct dlgparam { HWND hwnd; /* the hwnd of the dialog box */ struct winctrls *controltrees[8]; /* can have several of these */ int nctrltrees; + char *wintitle; /* title of actual window */ char *errtitle; /* title of error sub-messageboxes */ void *data; /* data to pass in refresh events */ union control *focused, *lastfocused; /* which ctrl has focus now/before */ @@ -318,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