X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/50a0d2b74b33d5e8b8add1a3df94e83ecfa584b6..985b644054f5e0d777184c48bfd8a97e824705fd:/testback.c diff --git a/testback.c b/testback.c index 22860f33..ac0d2067 100644 --- a/testback.c +++ b/testback.c @@ -1,4 +1,4 @@ -/* $Id: testback.c,v 1.9 2003/05/10 11:57:55 ben Exp $ */ +/* $Id$ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999 Ben Harris @@ -34,9 +34,9 @@ #include "putty.h" static const char *null_init(void *, void **, Config *, char *, int, char **, - int); + int, int); static const char *loop_init(void *, void **, Config *, char *, int, char **, - int); + int, int); static void null_free(void *); static void loop_free(void *); static void null_reconfig(void *, Config *); @@ -53,17 +53,20 @@ static int null_ldisc(void *, int); static void null_provide_ldisc(void *, void *); static void null_provide_logctx(void *, void *); static void null_unthrottle(void *, int); +static int null_cfg_info(void *); Backend null_backend = { null_init, null_free, null_reconfig, null_send, null_sendbuffer, null_size, null_special, null_get_specials, null_socket, null_exitcode, null_sendok, - null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle, 0 + null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle, + null_cfg_info, 0 }; Backend loop_backend = { loop_init, loop_free, null_reconfig, loop_send, null_sendbuffer, null_size, null_special, null_get_specials, null_socket, null_exitcode, null_sendok, - null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle, 0 + null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle, + null_cfg_info, 0 }; struct loop_state { @@ -72,14 +75,14 @@ struct loop_state { static const char *null_init(void *frontend_handle, void **backend_handle, Config *cfg, char *host, int port, - char **realhost, int nodelay) { + char **realhost, int nodelay, int keepalive) { return NULL; } static const char *loop_init(void *frontend_handle, void **backend_handle, Config *cfg, char *host, int port, - char **realhost, int nodelay) { + char **realhost, int nodelay, int keepalive) { struct loop_state *st = snew(struct loop_state); st->term = frontend_handle; @@ -163,6 +166,12 @@ static void null_provide_logctx(void *handle, void *logctx) { } +static int null_cfg_info(void *handle) +{ + return 0; +} + + /* * Emacs magic: * Local Variables: