1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Mention any extant downstreams in close warning.

Suggested by Brian Rak.
This commit is contained in:
Jacob Nevins
2021-02-21 14:17:03 +00:00
parent a859955689
commit 0ec45782b5
6 changed files with 46 additions and 8 deletions

View File

@ -652,6 +652,12 @@ struct BackendVtable {
/* Only implemented in the SSH protocol: check whether a
* connection-sharing upstream exists for a given configuration. */
bool (*test_for_upstream)(const char *host, int port, Conf *conf);
/* Special-purpose function to return additional information to put
* in a "are you sure you want to close this session" dialog;
* return NULL if no such info, otherwise caller must free.
* Only implemented in the SSH protocol, to warn about downstream
* connections that would be lost if this one were terminated. */
char *(*close_warn_text)(Backend *be);
/* 'id' is a machine-readable name for the backend, used in
* saved-session storage. 'displayname' is a human-readable name