X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/fef97f438c8c83ac625799c88e8f2da53d5f51cc..b73fd1b14f758cc52b47b1cec9c68ba52fee70ac:/putty.h diff --git a/putty.h b/putty.h index 52a50616..0636c4a1 100644 --- a/putty.h +++ b/putty.h @@ -14,6 +14,8 @@ #define GLOBAL extern #endif +GLOBAL HINSTANCE putty_inst; + #define ATTR_ACTCURS 0x80000000UL /* active cursor (block) */ #define ATTR_PASCURS 0x40000000UL /* passive cursor (box) */ #define ATTR_INVALID 0x20000000UL @@ -93,10 +95,12 @@ typedef struct { /* Basic options */ char host[512]; int port; - enum { PROT_TELNET, PROT_SSH } protocol; + enum { PROT_RAW, PROT_TELNET, PROT_SSH } protocol; int close_on_exit; + int warn_on_close; /* SSH options */ int nopty; + enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher; /* Telnet options */ char termtype[32]; char termspeed[32]; @@ -119,6 +123,7 @@ typedef struct { char font[64]; int fontisbold; int fontheight; + int fontcharset; VT_Mode vtmode; /* Colour options */ int try_palette; @@ -127,9 +132,25 @@ typedef struct { /* Selection options */ int mouse_is_xterm; short wordness[256]; + /* russian language translation */ + int xlat_enablekoiwin; + int xlat_capslockcyr; } Config; +/* + * You can compile with -DSSH_DEFAULT to have ssh by default. + */ +#ifndef SSH_DEFAULT +#define DEFAULT_PROTOCOL PROT_TELNET +#define DEFAULT_PORT 23 +#else +#define DEFAULT_PROTOCOL PROT_SSH +#define DEFAULT_PORT 22 +#endif + GLOBAL Config cfg; +GLOBAL int default_protocol; +GLOBAL int default_port; /* * Exports from window.c. @@ -139,7 +160,7 @@ void do_text (Context, int, int, char *, int, unsigned long); void set_title (char *); void set_icon (char *); void set_sbar (int, int, int); -Context get_ctx(); +Context get_ctx(void); void free_ctx (Context); void palette_set (int, int, int, int); void palette_reset (void); @@ -168,6 +189,10 @@ void lognegot (char *); void shownegot (HWND); void showabout (HWND); void verify_ssh_host_key(char *host, struct RSAKey *key); +void get_sesslist(int allocate); + +GLOBAL int nsessions; +GLOBAL char **sessions; /* * Exports from terminal.c. @@ -186,16 +211,22 @@ void term_update (void); void term_invalidate(void); /* + * Exports from raw.c. + */ + +Backend raw_backend; + +/* * Exports from telnet.c. */ -Backend telnet_backend; +extern Backend telnet_backend; /* * Exports from ssh.c. */ -Backend ssh_backend; +extern Backend ssh_backend; /* * Exports from sshrand.c. @@ -227,6 +258,24 @@ void *saferealloc(void *, size_t); void safefree(void *); /* + * Exports from version.c. + */ +extern char ver[]; + +/* + * Exports from sizetip.c. + */ +void UpdateSizeTip(HWND src, int cx, int cy); +void EnableSizeTip(int bEnable); + +/* + * Exports from xlat.c. + */ +unsigned char xlat_kbd2tty(unsigned char c); +unsigned char xlat_tty2scr(unsigned char c); +unsigned char xlat_latkbd2win(unsigned char c); + +/* * A debug system. */ #ifdef DEBUG