diff --git a/src/syncterm/telnet_io.c b/src/syncterm/telnet_io.c index dc409d8093012abe405535183c18e390c634464d..d69d72d81c2ab2ebc530c086ed2621c9fd53b684 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 5c495816ddde8d8729430af4225731893e82b40e..97884e4f182d7f789fed95b1f94f2fcbe8f2bd96 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