X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=testback.c;h=752ec4ca03dc73eaa9d4a772f3b2a048837cba68;hb=0249dd0a312f456452de834e3c7b9b94ec80fce4;hp=4bfb52d89dcd5d39598e86a2ed2a2c00fdd13920;hpb=b0bf176dfb87a3839ad4beff1f5dc1237e3f7645;p=PuTTY.git diff --git a/testback.c b/testback.c index 4bfb52d8..752ec4ca 100644 --- a/testback.c +++ b/testback.c @@ -1,4 +1,3 @@ -/* $Id$ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999 Ben Harris @@ -33,39 +32,40 @@ #include "putty.h" -static const char *null_init(void *, void **, Config *, char *, int, char **, +static const char *null_init(void *, void **, Conf *, char *, int, char **, int, int); -static const char *loop_init(void *, void **, Config *, char *, int, char **, +static const char *loop_init(void *, void **, Conf *, char *, int, char **, int, int); static void null_free(void *); static void loop_free(void *); -static void null_reconfig(void *, Config *); +static void null_reconfig(void *, Conf *); static int null_send(void *, char *, int); static int loop_send(void *, char *, int); static int null_sendbuffer(void *); static void null_size(void *, int, int); static void null_special(void *, Telnet_Special); static const struct telnet_special *null_get_specials(void *handle); -static Socket null_socket(void *); +static int null_connected(void *); static int null_exitcode(void *); static int null_sendok(void *); 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_special, null_get_specials, null_connected, null_exitcode, null_sendok, null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle, - null_cfg_info, 0 + null_cfg_info, NULL /* test_for_upstream */, "null", -1, 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_special, null_get_specials, null_connected, null_exitcode, null_sendok, null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle, - null_cfg_info, 0 + null_cfg_info, NULL /* test_for_upstream */, "loop", -1, 0 }; struct loop_state { @@ -73,14 +73,14 @@ struct loop_state { }; static const char *null_init(void *frontend_handle, void **backend_handle, - Config *cfg, char *host, int port, + Conf *conf, char *host, int port, 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, + Conf *conf, char *host, int port, char **realhost, int nodelay, int keepalive) { struct loop_state *st = snew(struct loop_state); @@ -100,7 +100,7 @@ static void loop_free(void *handle) sfree(handle); } -static void null_reconfig(void *handle, Config *cfg) { +static void null_reconfig(void *handle, Conf *conf) { } @@ -133,9 +133,9 @@ static const struct telnet_special *null_get_specials (void *handle) { return NULL; } -static Socket null_socket(void *handle) { +static int null_connected(void *handle) { - return NULL; + return 0; } static int null_exitcode(void *handle) {