projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes for (Backend)->size() changes -- internal declarations didn't include
[u/mdw/putty]
/
raw.c
diff --git
a/raw.c
b/raw.c
index
20732dd
..
90fc8a8
100644
(file)
--- a/
raw.c
+++ b/
raw.c
@@
-15,12
+15,13
@@
static Socket s = NULL;
static int raw_bufsize;
static Socket s = NULL;
static int raw_bufsize;
+static void *frontend;
-static void raw_size(
void
);
+static void raw_size(
int width, int height
);
static void c_write(char *buf, int len)
{
static void c_write(char *buf, int len)
{
- int backlog = from_backend(0, buf, len);
+ int backlog = from_backend(
frontend,
0, buf, len);
sk_set_frozen(s, backlog > RAW_MAX_BACKLOG);
}
sk_set_frozen(s, backlog > RAW_MAX_BACKLOG);
}
@@
-58,7
+59,8
@@
static void raw_sent(Plug plug, int bufsize)
* Also places the canonical host name into `realhost'. It must be
* freed by the caller.
*/
* Also places the canonical host name into `realhost'. It must be
* freed by the caller.
*/
-static char *raw_init(char *host, int port, char **realhost, int nodelay)
+static char *raw_init(void *frontend_handle, char *host, int port,
+ char **realhost, int nodelay)
{
static struct plug_function_table fn_table = {
raw_closing,
{
static struct plug_function_table fn_table = {
raw_closing,
@@
-69,6
+71,8
@@
static char *raw_init(char *host, int port, char **realhost, int nodelay)
SockAddr addr;
char *err;
SockAddr addr;
char *err;
+ frontend = frontend_handle;
+
/*
* Try to find host.
*/
/*
* Try to find host.
*/
@@
-126,7
+130,7
@@
static int raw_sendbuffer(void)
/*
* Called to set the size of the window
*/
/*
* Called to set the size of the window
*/
-static void raw_size(
void
)
+static void raw_size(
int width, int height
)
{
/* Do nothing! */
return;
{
/* Do nothing! */
return;