From bf4937bc910db2944dc50edd67bbd545e76821e2 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sun, 19 Jun 2016 23:36:39 -0700 Subject: Return exit code from run --- src/tty_interface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tty_interface.h') diff --git a/src/tty_interface.h b/src/tty_interface.h index 4122271..d6b05de 100644 --- a/src/tty_interface.h +++ b/src/tty_interface.h @@ -13,9 +13,11 @@ typedef struct { options_t *options; char search[SEARCH_SIZE_MAX + 1]; + + int exit; } tty_interface_t; void tty_interface_init(tty_interface_t *state, tty_t *tty, choices_t *choices, options_t *options); -void tty_interface_run(tty_interface_t *state); +int tty_interface_run(tty_interface_t *state); #endif -- cgit v1.2.3