1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 04:22:47 -05:00

The back ends now contain their own copies of the Config structure,

and have a function to pass in a new one. (Well, actually several
back ends don't actually bother to do this because they need nothing
out of Config after the initial setup phase, but they could if they
wanted to.)

[originally from svn r2561]
This commit is contained in:
Simon Tatham
2003-01-12 14:48:29 +00:00
parent cf2bcad348
commit f49c8c5a07
12 changed files with 190 additions and 114 deletions

9
raw.c
View File

@ -68,6 +68,7 @@ static void raw_sent(Plug plug, int bufsize)
* freed by the caller.
*/
static char *raw_init(void *frontend_handle, void **backend_handle,
Config *cfg,
char *host, int port, char **realhost, int nodelay)
{
static const struct plug_function_table fn_table = {
@ -121,6 +122,13 @@ static char *raw_init(void *frontend_handle, void **backend_handle,
return NULL;
}
/*
* Stub routine (we don't have any need to reconfigure this backend).
*/
static void raw_reconfig(void *handle, Config *cfg)
{
}
/*
* Called to send data down the raw connection.
*/
@ -205,6 +213,7 @@ static int raw_exitcode(void *handle)
Backend raw_backend = {
raw_init,
raw_reconfig,
raw_send,
raw_sendbuffer,
raw_size,