OSDN Git Service

Fix Compare with preview version crash problem at log dialog.
[tortoisegit/TortoiseGitJp.git] / src / TortoisePlink / BE_ALL_S.C
1 /*\r
2  * Linking module for PuTTY proper: list the available backends\r
3  * including ssh, plus the serial backend.\r
4  */\r
5 \r
6 #include <stdio.h>\r
7 #include "putty.h"\r
8 \r
9 /*\r
10  * This appname is not strictly in the right place, since Plink\r
11  * also uses this module. However, Plink doesn't currently use any\r
12  * of the dialog-box sorts of things that make use of appname, so\r
13  * it shouldn't do any harm here. I'm trying to avoid having to\r
14  * have tiny little source modules containing nothing but\r
15  * declarations of appname, for as long as I can...\r
16  */\r
17 const char *const appname = "PuTTY";\r
18 \r
19 #ifdef TELNET_DEFAULT\r
20 const int be_default_protocol = PROT_TELNET;\r
21 #else\r
22 const int be_default_protocol = PROT_SSH;\r
23 #endif\r
24 \r
25 struct backend_list backends[] = {\r
26     {PROT_SSH, "ssh", &ssh_backend},\r
27     {PROT_TELNET, "telnet", &telnet_backend},\r
28     {PROT_RLOGIN, "rlogin", &rlogin_backend},\r
29     {PROT_RAW, "raw", &raw_backend},\r
30     {PROT_SERIAL, "serial", &serial_backend},\r
31     {0, NULL}\r
32 };\r