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:
@ -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
|
||||
|
Reference in New Issue
Block a user