1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Move mainchan into its own file, like agentf.

This gets another big pile of logic out of ssh2connection and puts it
somewhere more central. Now the only thing left in ssh2connection is
the formatting and parsing of the various channel requests; the logic
deciding which ones to issue and what to do about them is devolved to
the Channel implementation, as it properly should be.
This commit is contained in:
Simon Tatham
2018-09-30 07:16:38 +01:00
parent 8db76dc3d7
commit 431f92ade9
9 changed files with 778 additions and 607 deletions

View File

@ -216,6 +216,7 @@ typedef enum {
SS_SIGINT, SS_SIGKILL, SS_SIGPIPE, SS_SIGQUIT, SS_SIGSEGV,
SS_SIGTERM, SS_SIGUSR1, SS_SIGUSR2,
/*
* These aren't really special commands, but they appear in the
* enumeration because the list returned from
@ -236,6 +237,10 @@ struct SessionSpecial {
int arg;
};
/* Needed by both sshchan.h and sshppl.h */
typedef void (*add_special_fn_t)(
void *ctx, const char *text, SessionSpecialCode code, int arg);
typedef enum {
MBT_NOTHING,
MBT_LEFT, MBT_MIDDLE, MBT_RIGHT, /* `raw' button designations */
@ -357,7 +362,8 @@ enum {
* Line discipline options which the backend might try to control.
*/
LD_EDIT, /* local line editing */
LD_ECHO /* local echo */
LD_ECHO, /* local echo */
LD_N_OPTIONS
};
enum {