aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-07-31 17:08:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-31 17:08:51 +0000
commit03f952cf4dcf45d909ce209838a3beb4304358e5 (patch)
treedd5a0718daa3b11c7e7ae8af923a54afcf260e88 /terminal.h
parentterm: rename: slave_died() -> fdm_client_terminated() (diff)
term: consolidate shutdown related state into an anonymous struct
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/terminal.h b/terminal.h
index e0441635..6e8aa264 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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;