be_all_s.c 849 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Linking module for PuTTY proper: list the available backends
  3. * including ssh, plus the serial backend.
  4. */
  5. #include <stdio.h>
  6. #include "putty.h"
  7. /*
  8. * This appname is not strictly in the right place, since Plink
  9. * also uses this module. However, Plink doesn't currently use any
  10. * of the dialog-box sorts of things that make use of appname, so
  11. * it shouldn't do any harm here. I'm trying to avoid having to
  12. * have tiny little source modules containing nothing but
  13. * declarations of appname, for as long as I can...
  14. */
  15. const char *const appname = "PuTTY";
  16. const int be_default_protocol = PROT_SSH;
  17. const struct BackendVtable *const backends[] = {
  18. &ssh_backend,
  19. &serial_backend,
  20. &telnet_backend,
  21. &rlogin_backend,
  22. &supdup_backend,
  23. &raw_backend,
  24. &sshconn_backend,
  25. NULL
  26. };
  27. const size_t n_ui_backends = 2;