1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/ldisc.h
Simon Tatham e72e8ebe59 Expose the Ldisc structure tag throughout the code.
That's one fewer anonymous 'void *' which might be accidentally
confused with some other pointer type if I misremember the order of
function arguments.

While I'm here, I've made its pointer-nature explicit - that is,
'Ldisc' is now a typedef for the structure type itself rather than a
pointer to it. A stylistic change only, but it feels more natural to
me these days for a thing you're going to eventually pass to a 'free'
function.
2018-09-19 22:10:57 +01:00

27 lines
595 B
C

/*
* ldisc.h: defines the Ldisc data structure used by ldisc.c and
* ldiscucs.c. (Unfortunately it was necessary to split the ldisc
* module in two, to avoid unnecessarily linking in the Unicode
* stuff in tools that don't require it.)
*/
#ifndef PUTTY_LDISC_H
#define PUTTY_LDISC_H
struct Ldisc_tag {
Terminal *term;
Backend *back;
void *backhandle;
void *frontend;
/*
* Values cached out of conf.
*/
int telnet_keyboard, telnet_newline, protocol, localecho, localedit;
char *buf;
int buflen, bufsiz, quotenext;
};
#endif /* PUTTY_LDISC_H */