diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-04 13:23:44 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-04 13:47:45 +0200 |
| commit | 8f92b98848f9366e78c7aa824615bade83971513 (patch) | |
| tree | 8c3253181320ae22abf76a370da339840a96a464 /ui.h | |
| parent | 583045c2d85f30cfebc7a7689c27c797db2d30f4 (diff) | |
| download | vis-8f92b98848f9366e78c7aa824615bade83971513.tar.gz vis-8f92b98848f9366e78c7aa824615bade83971513.tar.xz | |
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.
Diffstat (limited to 'ui.h')
| -rw-r--r-- | ui.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -3,7 +3,6 @@ #include <stdbool.h> #include <stdarg.h> -#include <termkey.h> 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 { |
