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 56f504c..2a3f028 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -130,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.
@@ -169,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.