X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5dd29cf7f83b5dd9aa2c87898e7ea57abdf99a3e..7374c7790ee32f36855e4257eb15d2fe43e277ea:/be_all_s.c diff --git a/be_all_s.c b/be_all_s.c new file mode 100644 index 00000000..4b3c1983 --- /dev/null +++ b/be_all_s.c @@ -0,0 +1,32 @@ +/* + * Linking module for PuTTY proper: list the available backends + * including ssh, plus the serial backend. + */ + +#include +#include "putty.h" + +/* + * This appname is not strictly in the right place, since Plink + * also uses this module. However, Plink doesn't currently use any + * of the dialog-box sorts of things that make use of appname, so + * it shouldn't do any harm here. I'm trying to avoid having to + * have tiny little source modules containing nothing but + * declarations of appname, for as long as I can... + */ +const char *const appname = "PuTTY"; + +#ifdef TELNET_DEFAULT +const int be_default_protocol = PROT_TELNET; +#else +const int be_default_protocol = PROT_SSH; +#endif + +struct backend_list backends[] = { + {PROT_SSH, "ssh", &ssh_backend}, + {PROT_TELNET, "telnet", &telnet_backend}, + {PROT_RLOGIN, "rlogin", &rlogin_backend}, + {PROT_RAW, "raw", &raw_backend}, + {PROT_SERIAL, "serial", &serial_backend}, + {0, NULL} +};