diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-30 17:23:18 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-30 17:23:18 +0800 |
commit | b3c064e52a5b1ef26a7c79033a4e79cf11cca770 (patch) | |
tree | 13afafd17d1350a6f1dd19ec4a1a6926a184e95d /include | |
parent | 813bf434512409f323b1b1d3b6fdcd70ab2cc9e2 (diff) | |
download | pttbbs-b3c064e52a5b1ef26a7c79033a4e79cf11cca770.tar pttbbs-b3c064e52a5b1ef26a7c79033a4e79cf11cca770.tar.gz pttbbs-b3c064e52a5b1ef26a7c79033a4e79cf11cca770.tar.bz2 pttbbs-b3c064e52a5b1ef26a7c79033a4e79cf11cca770.tar.lz pttbbs-b3c064e52a5b1ef26a7c79033a4e79cf11cca770.tar.xz pttbbs-b3c064e52a5b1ef26a7c79033a4e79cf11cca770.tar.zst pttbbs-b3c064e52a5b1ef26a7c79033a4e79cf11cca770.zip |
* add termtype call back (although we don't really trust it at this moment...)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4896 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/cmsys.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/cmsys.h b/include/cmsys.h index 4574f74b..89ad93d5 100644 --- a/include/cmsys.h +++ b/include/cmsys.h @@ -183,6 +183,7 @@ struct TelnetCallback { void (*term_resize) (void *resize_arg,int w, int h); void (*update_client_code) (void *cc_arg, unsigned char seq); void (*send_ayt) (void *ayt_arg, int fd); + void (*ttype) (void *ttype_arg, char *ttype, int ttype_len); }; #define TELNET_IAC_MAXLEN (16) @@ -204,6 +205,7 @@ struct TelnetCtx { void *resize_arg; // term_resize void *cc_arg; // update_client_code void *ayt_arg; // send_ayt + void *ttype_arg; // term_type (ttype) }; typedef struct TelnetCtx TelnetCtx; @@ -213,10 +215,11 @@ extern void telnet_free_context (TelnetCtx *ctx); extern void telnet_ctx_init (TelnetCtx *ctx, const struct TelnetCallback *callback, int fd); extern void telnet_ctx_send_init_cmds(TelnetCtx *ctx); -extern void telnet_ctx_set_cc_arg (TelnetCtx *ctx, void *cc_arg); -extern void telnet_ctx_set_write_arg (TelnetCtx *ctx, void *cc_arg); -extern void telnet_ctx_set_resize_arg(TelnetCtx *ctx, void *cc_arg); -extern void telnet_ctx_set_ayt_arg (TelnetCtx *ctx, void *ayt_arg); +extern void telnet_ctx_set_cc_arg (TelnetCtx *ctx, void *arg); +extern void telnet_ctx_set_write_arg (TelnetCtx *ctx, void *arg); +extern void telnet_ctx_set_resize_arg(TelnetCtx *ctx, void *arg); +extern void telnet_ctx_set_ayt_arg (TelnetCtx *ctx, void *arg); +extern void telnet_ctx_set_ttype_arg (TelnetCtx *ctx, void *arg); extern ssize_t telnet_process (TelnetCtx *ctx, unsigned char *buf, ssize_t size); |