X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=winstuff.h;h=90c03481d689af58dc5f2d3cd9ce8df26bd07d5e;hb=4756c15fc9556e2f29bdc65594ea15892f9b5d35;hp=f21053f7754db2905832ba87b19f509caa03459b;hpb=64c52b0d307ac9bf9e386e14e2801068dc3d0f25;p=PuTTY.git diff --git a/winstuff.h b/winstuff.h index f21053f7..90c03481 100644 --- a/winstuff.h +++ b/winstuff.h @@ -18,7 +18,12 @@ #endif #endif -typedef struct config_tag Config; /* duplicated from putty.h */ +#ifndef DONE_TYPEDEFS +#define DONE_TYPEDEFS +typedef struct config_tag Config; +typedef struct backend_tag Backend; +typedef struct terminal_tag Terminal; +#endif #define PUTTY_REG_POS "Software\\SimonTatham\\PuTTY" #define PUTTY_REG_PARENT "Software\\SimonTatham" @@ -45,6 +50,20 @@ GLOBAL HWND logbox; */ GLOBAL HINSTANCE hinst; +/* + * Details of the help file. + */ +GLOBAL char *help_path; +GLOBAL int help_has_contents; + +/* + * The terminal and logging context are notionally local to the + * Windows front end, but they must be shared between window.c and + * windlg.c. + */ +GLOBAL Terminal *term; +GLOBAL void *logctx; + /* * I've just looked in the windows standard headr files for WM_USER, there * are hundreds of flags defined using the form WM_USER+123 so I've @@ -53,6 +72,22 @@ GLOBAL HINSTANCE hinst; #define WM_XUSER (WM_USER + 0x2000) #define WM_NETEVENT (WM_XUSER + 5) +/* + * On Windows, we send MA_2CLK as the only event marking the second + * press of a mouse button. Compare unix.h. + */ +#define MULTICLICK_ONLY_EVENT 1 + +/* + * On Windows, data written to the clipboard must be NUL-terminated. + */ +#define SELECTION_NUL_TERMINATED 1 + +/* + * On Windows, copying to the clipboard terminates lines with CRLF. + */ +#define SEL_NL { 13, 10 } + /* * Exports from winctrls.c. */ @@ -143,20 +178,10 @@ void fwdsetter(struct ctlpos *cp, int listid, char *stext, int sid, void defuse_showwindow(void); int do_config(void); int do_reconfig(HWND); -void do_defaults(char *, Config *); -void logevent(char *); void showeventlog(HWND); void showabout(HWND); -void verify_ssh_host_key(char *host, int port, char *keytype, - char *keystr, char *fingerprint); -void askcipher(char *ciphername, int cs); -int askappend(char *filename); -void registry_cleanup(void); void force_normal(HWND hwnd); -GLOBAL int nsessions; -GLOBAL char **sessions; - /* * Exports from sizetip.c. */