1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-16 02:27:32 -05:00

Merge duplicate implementations of the trivial Plug.

In the course of reworking the socket vtable system, I noticed that
both sshshare.c and x11fwd.c independently invented the idea of a Plug
none of whose methods do anything. We don't need more than one of
those, so let's centralise the idea to somewhere it can be easily
reused.
This commit is contained in:
Simon Tatham
2018-05-27 15:41:12 +01:00
parent f6d04ef1c4
commit b851d748be
5 changed files with 51 additions and 43 deletions

View File

@ -207,6 +207,11 @@ char *get_hostname(void);
*/
Socket new_error_socket(const char *errmsg, Plug plug);
/*
* Trivial plug that does absolutely nothing. Found in nullplug.c.
*/
extern Plug nullplug;
/* ----------------------------------------------------------------------
* Functions defined outside the network code, which have to be
* declared in this header file rather than the main putty.h because