summaryrefslogtreecommitdiff
path: root/src/tty_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tty_interface.h')
-rw-r--r--src/tty_interface.h11
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