mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04:00
term: consolidate shutdown related state into an anonymous struct
This commit is contained in:
parent
c23bff4189
commit
03f952cf4d
5 changed files with 48 additions and 39 deletions
15
terminal.h
15
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue