From bac857ca6af6dac1d203034f93ea690f3b3c9d97 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 5 Apr 2003 14:32:58 +0000 Subject: [PATCH] Add null_get_specials(), for both null and loop backends. git-svn-id: svn://svn.tartarus.org/sgt/putty@3057 cda61777-01e9-0310-a592-d414129be87e --- testback.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/testback.c b/testback.c index e24217c0..9ca9c49e 100644 --- a/testback.c +++ b/testback.c @@ -1,4 +1,4 @@ -/* $Id: testback.c,v 1.7 2003/03/29 16:14:26 simon Exp $ */ +/* $Id: testback.c,v 1.8 2003/04/05 14:32:58 ben Exp $ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999 Ben Harris @@ -43,6 +43,7 @@ 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_exitcode(void *); static int null_sendok(void *); @@ -53,14 +54,14 @@ static void null_unthrottle(void *, int); Backend null_backend = { null_init, null_free, null_reconfig, null_send, null_sendbuffer, null_size, - null_special, null_socket, null_exitcode, null_sendok, null_ldisc, - null_provide_ldisc, null_provide_logctx, null_unthrottle, 0 + null_special, null_get_specials, null_socket, null_exitcode, null_sendok, + null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle, 0 }; Backend loop_backend = { loop_init, loop_free, null_reconfig, loop_send, null_sendbuffer, null_size, - null_special, null_socket, null_exitcode, null_sendok, null_ldisc, - null_provide_ldisc, null_provide_logctx, null_unthrottle, 0 + null_special, null_get_specials, null_socket, null_exitcode, null_sendok, + null_ldisc, null_provide_ldisc, null_provide_logctx, null_unthrottle, 0 }; struct loop_state { @@ -123,6 +124,11 @@ static void null_special(void *handle, Telnet_Special code) { } +static const struct telnet_special *null_get_specials (void *handle) { + + return NULL; +} + static Socket null_socket(void *handle) { return NULL; -- 2.11.0