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

@ -130,8 +130,29 @@ static char *raw_description(Interactor *itr)
return dupstr(raw->description);
}
static LogPolicy *raw_logpolicy(Interactor *itr)
{
Raw *raw = container_of(itr, Raw, interactor);
return log_get_policy(raw->logctx);
}
static Seat *raw_get_seat(Interactor *itr)
{
Raw *raw = container_of(itr, Raw, interactor);
return raw->seat;
}
static void raw_set_seat(Interactor *itr, Seat *seat)
{
Raw *raw = container_of(itr, Raw, interactor);
raw->seat = seat;
}
static const InteractorVtable Raw_interactorvt = {
.description = raw_description,
.logpolicy = raw_logpolicy,
.get_seat = raw_get_seat,
.set_seat = raw_set_seat,
};
/*