1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Consequences of Simon's recent deglobalisation changes.

[originally from svn r2573]
This commit is contained in:
Ben Harris
2003-01-12 16:11:27 +00:00
parent 6fbf5d8540
commit b4d37df579
7 changed files with 39 additions and 37 deletions

View File

@ -1,4 +1,4 @@
/* $Id: testback.c,v 1.4 2002/11/23 20:40:22 ben Exp $ */
/* $Id: testback.c,v 1.5 2003/01/12 16:11:27 ben Exp $ */
/*
* Copyright (c) 1999 Simon Tatham
* Copyright (c) 1999 Ben Harris
@ -33,8 +33,9 @@
#include "putty.h"
static char *null_init(void *, void **, char *, int, char **, int);
static char *loop_init(void *, void **, char *, int, char **, int);
static char *null_init(void *, void **, Config *, char *, int, char **, int);
static char *loop_init(void *, void **, Config *, char *, int, char **, int);
static void null_reconfig(void *, Config *);
static int null_send(void *, char *, int);
static int loop_send(void *, char *, int);
static int null_sendbuffer(void *);
@ -49,15 +50,15 @@ static void null_provide_logctx(void *, void *);
static void null_unthrottle(void *, int);
Backend null_backend = {
null_init, 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_init, 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
};
Backend loop_backend = {
loop_init, 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
loop_init, 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
};
struct loop_state {
@ -65,13 +66,15 @@ struct loop_state {
};
static char *null_init(void *frontend_handle, void **backend_handle,
char *host, int port, char **realhost, int nodelay) {
Config *cfg, char *host, int port, char **realhost,
int nodelay) {
return NULL;
}
static char *loop_init(void *frontend_handle, void **backend_handle,
char *host, int port, char **realhost, int nodelay) {
Config *cfg, char *host, int port, char **realhost,
int nodelay) {
struct loop_state *st = smalloc(sizeof(*st));
st->term = frontend_handle;
@ -79,6 +82,10 @@ static char *loop_init(void *frontend_handle, void **backend_handle,
return NULL;
}
static void null_reconfig(void *handle, Config *cfg) {
}
static int null_send(void *handle, char *buf, int len) {
return 0;