diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2016-06-19 23:17:53 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2016-06-19 23:17:53 -0700 |
commit | 12bd59c5ad9f437f1555dd22b1a792c6d4ce490a (patch) | |
tree | 0d818398f74e6f06ee85d9642dc8f39c9f13d981 /src/tty_interface.h | |
parent | 52f091dfd559ba6f4ad9ddeb40411423c4914cd4 (diff) |
Store state in tty_interface_t
Diffstat (limited to 'src/tty_interface.h')
-rw-r--r-- | src/tty_interface.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tty_interface.h b/src/tty_interface.h index e1240c3..4122271 100644 --- a/src/tty_interface.h +++ b/src/tty_interface.h @@ -7,6 +7,15 @@ #define SEARCH_SIZE_MAX 4096 -void tty_interface_run(tty_t *tty, choices_t *choices, options_t *options); +typedef struct { + tty_t *tty; + choices_t *choices; + options_t *options; + + char search[SEARCH_SIZE_MAX + 1]; +} 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); #endif |