| 64 |
#include "i18n.h" |
#include "i18n.h" |
| 65 |
#include "ttlib.h" |
#include "ttlib.h" |
| 66 |
|
|
| 67 |
typedef struct _TInstVar FAR * PTInstVar; |
typedef struct _TInstVar *PTInstVar; |
| 68 |
|
|
| 69 |
#include "util.h" |
#include "util.h" |
| 70 |
#include "pkt.h" |
#include "pkt.h" |
| 198 |
|
|
| 199 |
/* shared memory for settings across instances. Basically it's |
/* shared memory for settings across instances. Basically it's |
| 200 |
a cache for the INI file.*/ |
a cache for the INI file.*/ |
| 201 |
TS_SSH FAR * ts_SSH; |
TS_SSH *ts_SSH; |
| 202 |
|
|
| 203 |
int fatal_error; |
int fatal_error; |
| 204 |
int showing_err; |
int showing_err; |
| 205 |
char FAR * err_msg; |
char *err_msg; |
| 206 |
|
|
| 207 |
Tconnect Pconnect; |
Tconnect Pconnect; |
| 208 |
Trecv Precv; |
Trecv Precv; |
| 339 |
#define SSHv2(pvar) ((pvar)->protocol_major == 2) |
#define SSHv2(pvar) ((pvar)->protocol_major == 2) |
| 340 |
|
|
| 341 |
void notify_established_secure_connection(PTInstVar pvar); |
void notify_established_secure_connection(PTInstVar pvar); |
| 342 |
void notify_closed_connection(PTInstVar pvar, char FAR * send_msg); |
void notify_closed_connection(PTInstVar pvar, char *send_msg); |
| 343 |
void notify_nonfatal_error(PTInstVar pvar, char FAR * msg); |
void notify_nonfatal_error(PTInstVar pvar, char *msg); |
| 344 |
void notify_fatal_error(PTInstVar pvar, char FAR * msg, BOOL send_disconnect); |
void notify_fatal_error(PTInstVar pvar, char *msg, BOOL send_disconnect); |
| 345 |
void notify_verbose_message(PTInstVar pvar, char FAR * msg, int level); |
void notify_verbose_message(PTInstVar pvar, char *msg, int level); |
| 346 |
void logprintf(PTInstVar pvar, int level, char *fmt, ...); |
void logprintf(PTInstVar pvar, int level, char *fmt, ...); |
| 347 |
void logprintf_hexdump(PTInstVar pvar, int level, char *data, int len, char *fmt, ...); |
void logprintf_hexdump(PTInstVar pvar, int level, char *data, int len, char *fmt, ...); |
| 348 |
|
|
| 349 |
|
|
| 350 |
void get_teraterm_dir_relative_name(char FAR * buf, int bufsize, char FAR * basename); |
void get_teraterm_dir_relative_name(char *buf, int bufsize, char *basename); |
| 351 |
int copy_teraterm_dir_relative_path(char FAR * dest, int destsize, char FAR * basename); |
int copy_teraterm_dir_relative_path(char *dest, int destsize, char *basename); |
| 352 |
void get_file_version(char *exefile, int *major, int *minor, int *release, int *build); |
void get_file_version(char *exefile, int *major, int *minor, int *release, int *build); |
| 353 |
int uuencode(unsigned char *src, int srclen, unsigned char *target, int targsize); |
int uuencode(unsigned char *src, int srclen, unsigned char *target, int targsize); |
| 354 |
|
|