From 8f92b98848f9366e78c7aa824615bade83971513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 4 May 2016 13:23:44 +0200 Subject: vis: clean up interaction between vis and ui A concrete user interface implementation should not have to depend on libtermkey. Therefore the vis core now uses an independent instance to parse keys. --- ui.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ui.h') diff --git a/ui.h b/ui.h index de1b948..d846deb 100644 --- a/ui.h +++ b/ui.h @@ -3,7 +3,6 @@ #include #include -#include typedef struct Ui Ui; typedef struct UiWin UiWin; @@ -48,7 +47,6 @@ struct Ui { bool (*init)(Ui*, Vis*); bool (*start)(Ui*); void (*free)(Ui*); - void (*resize)(Ui*); UiWin* (*window_new)(Ui*, View*, File*, enum UiOption); void (*window_free)(UiWin*); void (*window_focus)(UiWin*); @@ -62,10 +60,9 @@ struct Ui { void (*update)(Ui*); void (*suspend)(Ui*); const char* (*getkey)(Ui*); - bool (*haskey)(Ui*); + void (*needkey)(Ui*); void (*terminal_save)(Ui*); void (*terminal_restore)(Ui*); - TermKey* (*termkey_get)(Ui*); }; struct UiWin { -- cgit v1.2.3