1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 19:42: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

@ -695,8 +695,29 @@ static char *telnet_description(Interactor *itr)
return dupstr(telnet->description);
}
static LogPolicy *telnet_logpolicy(Interactor *itr)
{
Telnet *telnet = container_of(itr, Telnet, interactor);
return log_get_policy(telnet->logctx);
}
static Seat *telnet_get_seat(Interactor *itr)
{
Telnet *telnet = container_of(itr, Telnet, interactor);
return telnet->seat;
}
static void telnet_set_seat(Interactor *itr, Seat *seat)
{
Telnet *telnet = container_of(itr, Telnet, interactor);
telnet->seat = seat;
}
static const InteractorVtable Telnet_interactorvt = {
.description = telnet_description,
.logpolicy = telnet_logpolicy,
.get_seat = telnet_get_seat,
.set_seat = telnet_set_seat,
};
/*