Oleg Panashchenko's Cyrillic support patch
[u/mdw/putty] / putty.h
diff --git a/putty.h b/putty.h
index 5628f9d..42c8592 100644 (file)
--- 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,8 +95,9 @@ 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;
@@ -120,6 +123,7 @@ typedef struct {
     char font[64];
     int fontisbold;
     int fontheight;
+    int fontcharset;
     VT_Mode vtmode;
     /* Colour options */
     int try_palette;
@@ -128,6 +132,9 @@ typedef struct {
     /* Selection options */
     int mouse_is_xterm;
     short wordness[256];
+    /* russian language translation */
+    int xlat_enablekoiwin;
+    int xlat_capslockcyr;
 } Config;
 
 /*
@@ -184,8 +191,8 @@ void showabout (HWND);
 void verify_ssh_host_key(char *host, struct RSAKey *key);
 void get_sesslist(int allocate);
 
-int nsessions;
-char **sessions;
+GLOBAL int nsessions;
+GLOBAL char **sessions;
 
 /*
  * Exports from terminal.c.
@@ -204,6 +211,12 @@ void term_update (void);
 void term_invalidate(void);
 
 /*
+ * Exports from raw.c.
+ */
+
+Backend raw_backend;
+
+/*
  * Exports from telnet.c.
  */
 
@@ -250,6 +263,13 @@ void safefree(void *);
 extern char ver[];
 
 /*
+ * 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