term: consolidate shutdown related state into an anonymous struct

This commit is contained in:
Daniel Eklöf 2021-07-31 19:08:51 +02:00
parent c23bff4189
commit 03f952cf4d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 48 additions and 39 deletions

View file

@ -593,12 +593,15 @@ struct terminal {
bool ime_enabled;
#endif
bool is_shutting_down;
bool slave_has_been_reaped;
int slave_terminate_timeout_fd;
int exit_status;
void (*shutdown_cb)(void *data, int exit_code);
void *shutdown_data;
struct {
bool in_progress;
bool client_has_terminated;
int terminate_timeout_fd;
int exit_status;
void (*cb)(void *data, int exit_code);
void *cb_data;
} shutdown;
char *foot_exe;
char *cwd;