1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Add Interactor methods to get/set LogPolicy and Seat.

Nothing uses this yet, but the next commit will.
This commit is contained in:
Simon Tatham
2021-10-30 17:34:53 +01:00
parent 44db74ec51
commit aac5e096fa
6 changed files with 127 additions and 0 deletions

View File

@ -732,8 +732,29 @@ static char *ssh_description(Interactor *itr)
return dupstr(ssh->description);
}
static LogPolicy *ssh_logpolicy(Interactor *itr)
{
Ssh *ssh = container_of(itr, Ssh, interactor);
return log_get_policy(ssh->logctx);
}
static Seat *ssh_get_seat(Interactor *itr)
{
Ssh *ssh = container_of(itr, Ssh, interactor);
return ssh->seat;
}
static void ssh_set_seat(Interactor *itr, Seat *seat)
{
Ssh *ssh = container_of(itr, Ssh, interactor);
ssh->seat = seat;
}
static const InteractorVtable Ssh_interactorvt = {
.description = ssh_description,
.logpolicy = ssh_logpolicy,
.get_seat = ssh_get_seat,
.set_seat = ssh_set_seat,
};
/*