summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f6b1422)
the backend actually works now.
git-svn-id: svn://svn.tartarus.org/sgt/putty@2249
cda61777-01e9-0310-a592-
d414129be87e
-/* $Id: testback.c,v 1.2 2002/11/19 12:29:45 ben Exp $ */
+/* $Id: testback.c,v 1.3 2002/11/23 19:58:55 ben Exp $ */
/*
* Copyright (c) 1999 Simon Tatham
* Copyright (c) 1999 Ben Harris
/*
* Copyright (c) 1999 Simon Tatham
* Copyright (c) 1999 Ben Harris
struct loop_state *st = smalloc(sizeof(*st));
st->term = frontend_handle;
struct loop_state *st = smalloc(sizeof(*st));
st->term = frontend_handle;
+ *backend_handle = st;
+ return NULL;
}
static int null_send(void *handle, char *buf, int len) {
}
static int null_send(void *handle, char *buf, int len) {
static int loop_send(void *handle, char *buf, int len) {
struct loop_state *st = handle;
static int loop_send(void *handle, char *buf, int len) {
struct loop_state *st = handle;
+ fprintf(stderr, "%d chars: ", len);
+ for (i = 0; i < len; i++)
+ fprintf(stderr, " 0x%x", buf[i]);
+ fprintf(stderr, "\n");
return from_backend(st->term, 0, buf, len);
}
return from_backend(st->term, 0, buf, len);
}