1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/stubs/null-opener.c

21 lines
512 B
C
Raw Permalink Normal View History

/*
* Null implementation of DeferredSocketOpener. Doesn't even bother to
* allocate and free itself: there's just one static implementation
* which we hand out to any caller.
*/
#include "putty.h"
static void null_opener_free(DeferredSocketOpener *opener) {}
static const DeferredSocketOpenerVtable NullOpener_vt = {
.free = null_opener_free,
};
static DeferredSocketOpener null_opener = { .vt = &NullOpener_vt };
DeferredSocketOpener *null_deferred_socket_opener(void)
{
return &null_opener;
}