mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-08 08:58:00 +00:00
0f9e0d6e41
This replaces the pure radio-button setup that we've always had on the Session config panel. Since the last release, that set of radio buttons has been getting out of hand. We've added two new protocols (SUPDUP, and the 'bare ssh-connection' aka psusan protocol), neither of which is mainstream enough to be a sensible thing to wave at all users on the front page of the config GUI, so that they perhaps start wondering if that's the protocol they want to use, or get sidetracked by going and looking it up. The replacement UI still has radio buttons, but only for the most common protocols, which will typically be SSH and serial. Everything else is relegated to a drop-down list sitting next to a third radio button labelled "Other". In every be_* module providing a backends[] list, there's also a variable n_ui_backends which indicates how many of the backends ought to appear as first-level radio buttons. (Credit where due: this patch is a joint effort between Jacob and me, and is one of those rare cases where it would be nice to be able to put both our names into the Author field of the commit. Failing that, I can at least mention it here.)
19 lines
469 B
C
19 lines
469 B
C
/*
|
|
* Linking module for programs that are restricted to only using
|
|
* SSH-type protocols (pscp and psftp). These still have a choice of
|
|
* two actual backends, because they can also speak PROT_SSHCONN.
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include "putty.h"
|
|
|
|
const int be_default_protocol = PROT_SSH;
|
|
|
|
const struct BackendVtable *const backends[] = {
|
|
&ssh_backend,
|
|
&sshconn_backend,
|
|
NULL
|
|
};
|
|
|
|
const size_t n_ui_backends = 0; /* not used in programs with a config UI */
|