Stop putting meaning in bottom four bits of WM_SYSCOMMAND wParam
[u/mdw/putty] / putty.h
diff --git a/putty.h b/putty.h
index a456fdb..2a3f028 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -95,6 +95,9 @@ typedef struct {
     int port;
     enum { PROT_TELNET, PROT_SSH } protocol;
     int close_on_exit;
+    /* SSH options */
+    int nopty;
+    enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher;
     /* Telnet options */
     char termtype[32];
     char termspeed[32];
@@ -111,6 +114,7 @@ typedef struct {
     int savelines;
     int dec_om;
     int wrap_mode;
+    int lfhascr;
     int win_name_always;
     int width, height;
     char font[64];
@@ -126,7 +130,20 @@ typedef struct {
     short wordness[256];
 } 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.
@@ -136,7 +153,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);
@@ -165,6 +182,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,13 +207,13 @@ void term_invalidate(void);
  * 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.
@@ -224,6 +245,11 @@ void *saferealloc(void *, size_t);
 void safefree(void *);
 
 /*
+ * Exports from version.c.
+ */
+extern char ver[];
+
+/*
  * A debug system.
  */
 #ifdef DEBUG