~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rationalisation of the system of frontend handles. Most modular bits
[sgt/putty]
/
window.c
diff --git
a/window.c
b/window.c
index
40d9ae1
..
3c3cdb6
100644
(file)
--- a/
window.c
+++ b/
window.c
@@
-632,7
+632,7
@@
int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
char msg[1024], *title;
char *realhost;
char msg[1024], *title;
char *realhost;
- error = back->init(
(void *)term
, &backhandle, &cfg,
+ error = back->init(
NULL
, &backhandle, &cfg,
cfg.host, cfg.port, &realhost, cfg.tcp_nodelay);
back->provide_logctx(backhandle, logctx);
if (error) {
cfg.host, cfg.port, &realhost, cfg.tcp_nodelay);
back->provide_logctx(backhandle, logctx);
if (error) {
@@
-4621,3
+4621,8
@@
void frontend_keypress(void *handle)
*/
return;
}
*/
return;
}
+
+int from_backend(void *frontend, int is_stderr, const char *data, int len)
+{
+ return term_data(term, is_stderr, data, len);
+}