mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Give BackendVtable separate id and displayname fields.
The previous 'name' field was awkwardly serving both purposes: it was a machine-readable identifier for the backend used in the saved session format, and it was also used in error messages when Plink wanted to complain that it didn't support a particular backend. Now there are two separate name fields for those purposes.
This commit is contained in:
6
putty.h
6
putty.h
@ -512,7 +512,11 @@ struct BackendVtable {
|
||||
* connection-sharing upstream exists for a given configuration. */
|
||||
bool (*test_for_upstream)(const char *host, int port, Conf *conf);
|
||||
|
||||
const char *name;
|
||||
/* 'id' is a machine-readable name for the backend, used in
|
||||
* saved-session storage. 'displayname' is a human-readable name
|
||||
* for error messages. */
|
||||
const char *id, *displayname;
|
||||
|
||||
int protocol;
|
||||
int default_port;
|
||||
};
|
||||
|
Reference in New Issue
Block a user