From 374d1dffcaa629ff948313e54ba8d43c0c6b5006 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Mon, 20 Mar 2006 23:46:19 +0000 Subject: [PATCH] Made request_telnet_opt() global/public, so may be used from term.c to toggle binary mode for Zmodem file transfers (for MBSE compatibility). --- src/syncterm/telnet_io.c | 2 +- src/syncterm/telnet_io.h | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/syncterm/telnet_io.c b/src/syncterm/telnet_io.c index dc409d8093..d69d72d81c 100644 --- a/src/syncterm/telnet_io.c +++ b/src/syncterm/telnet_io.c @@ -69,7 +69,7 @@ static void send_telnet_cmd(uchar cmd, uchar opt) } } -static void request_telnet_opt(uchar cmd, uchar opt) +void request_telnet_opt(uchar cmd, uchar opt) { if(cmd==TELNET_DO || cmd==TELNET_DONT) { /* remote option */ if(telnet_remote_option[opt]==telnet_opt_ack(cmd)) diff --git a/src/syncterm/telnet_io.h b/src/syncterm/telnet_io.h index 5c495816dd..97884e4f18 100644 --- a/src/syncterm/telnet_io.h +++ b/src/syncterm/telnet_io.h @@ -3,10 +3,13 @@ #ifndef _TELNET_IO_H_ #define _TELNET_IO_H_ +#include "telnet.h" + extern uchar telnet_local_option[0x100]; extern uchar telnet_remote_option[0x100]; -BYTE* telnet_interpret(BYTE* inbuf, int inlen, BYTE* outbuf, int *outlen); -BYTE* telnet_expand(BYTE* inbuf, size_t inlen, BYTE* outbuf, size_t *newlen); +BYTE* telnet_interpret(BYTE* inbuf, int inlen, BYTE* outbuf, int *outlen); +BYTE* telnet_expand(BYTE* inbuf, size_t inlen, BYTE* outbuf, size_t *newlen); +void request_telnet_opt(uchar cmd, uchar opt); #endif -- GitLab