mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Support for Windows PuTTY connecting straight to a local serial port
in place of making a network connection. This has involved a couple of minor infrastructure changes: - New dlg_label_change() function in the dialog.h interface, which alters the label on a control. Only used, at present, to switch the Host Name and Port boxes into Serial Line and Speed, which means that any platform not implementing serial connections (i.e. currently all but Windows) does not need to actually do anything in this function. Yet. - New small piece of infrastructure: cfg_launchable() determines whether a Config structure describes a session ready to be launched. This was previously determined by seeing if it had a non-empty host name, but it has to check the serial line as well so there's a centralised function for it. I haven't gone through all front ends and arranged for this function to be used everywhere it needs to be; so far I've only checked Windows. - Similarly, cfg_dest() returns the destination of a connection (host name or serial line) in a text format suitable for putting into messages such as `Unable to connect to %s'. [originally from svn r6815]
This commit is contained in:
26
putty.h
26
putty.h
@ -298,7 +298,10 @@ enum {
|
||||
|
||||
enum {
|
||||
/* Protocol back ends. (cfg.protocol) */
|
||||
PROT_RAW, PROT_TELNET, PROT_RLOGIN, PROT_SSH
|
||||
PROT_RAW, PROT_TELNET, PROT_RLOGIN, PROT_SSH,
|
||||
/* PROT_SERIAL is supported on a subset of platforms, but it doesn't
|
||||
* hurt to define it globally. */
|
||||
PROT_SERIAL
|
||||
};
|
||||
|
||||
enum {
|
||||
@ -330,6 +333,14 @@ enum {
|
||||
FQ_DEFAULT, FQ_ANTIALIASED, FQ_NONANTIALIASED, FQ_CLEARTYPE
|
||||
};
|
||||
|
||||
enum {
|
||||
SER_PAR_NONE, SER_PAR_ODD, SER_PAR_EVEN, SER_PAR_MARK, SER_PAR_SPACE
|
||||
};
|
||||
|
||||
enum {
|
||||
SER_FLOW_NONE, SER_FLOW_XONXOFF, SER_FLOW_RTSCTS, SER_FLOW_DSRDTR
|
||||
};
|
||||
|
||||
extern const char *const ttymodes[];
|
||||
|
||||
enum {
|
||||
@ -456,6 +467,12 @@ struct config_tag {
|
||||
char localusername[100];
|
||||
int rfc_environ;
|
||||
int passive_telnet;
|
||||
/* Serial port options */
|
||||
char serline[256];
|
||||
int serspeed;
|
||||
int serdatabits, serstopbits;
|
||||
int serparity;
|
||||
int serflow;
|
||||
/* Keyboard options */
|
||||
int bksp_is_delete;
|
||||
int rxvt_homeend;
|
||||
@ -908,6 +925,13 @@ void pinger_free(Pinger);
|
||||
*/
|
||||
|
||||
#include "misc.h"
|
||||
int cfg_launchable(const Config *cfg);
|
||||
char const *cfg_dest(const Config *cfg);
|
||||
|
||||
/*
|
||||
* Exports from sercfg.c.
|
||||
*/
|
||||
void ser_setup_config_box(struct controlbox *b, int midsession);
|
||||
|
||||
/*
|
||||
* Exports from version.c.
|
||||
|
Reference in New Issue
Block a user