mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
21 lines
512 B
C
21 lines
512 B
C
|
/*
|
||
|
* 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;
|
||
|
}
|