aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-26 21:50:31 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-10-27 11:13:07 +0100
commit6a7e5a3cfc86db049f595bd20d20041d7346e4ef (patch)
treef1b2b108738935bac9048e78ba27d55cd91a9e47 /vis.h
parentbc9909f4cd9355c197944ee320eed3971431f699 (diff)
downloadvis-6a7e5a3cfc86db049f595bd20d20041d7346e4ef.tar.gz
vis-6a7e5a3cfc86db049f595bd20d20041d7346e4ef.tar.xz
vis: introduce vis_prompt_enter API
This is a really bad API/abtraction but at least it allows us to hide some implementation details.
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/vis.h b/vis.h
index c427d06..80e781c 100644
--- a/vis.h
+++ b/vis.h
@@ -44,8 +44,6 @@ typedef struct {
const char *alias;
} KeyBinding;
-
-
Vis *vis_new(Ui*);
void vis_free(Vis*);
void vis_resize(Vis*);
@@ -77,6 +75,8 @@ void vis_window_next(Vis*);
void vis_window_prev(Vis*);
/* display a user prompt with a certain title and default text */
void vis_prompt_show(Vis*, const char *title, const char *text);
+/* TODO: bad abstraction */
+void vis_prompt_enter(Vis*);
/* hide the user prompt if it is currently shown */
void vis_prompt_hide(Vis*);
/* return the content of the command prompt in a malloc(3)-ed string
@@ -124,9 +124,6 @@ bool vis_mode_map(Vis*, enum VisMode, const char *name, KeyBinding*);
bool vis_mode_unmap(Vis*, enum VisMode, const char *name);
bool vis_mode_bindings(Vis*, enum VisMode, KeyBinding **bindings);
const char *vis_mode_status(Vis*);
-/* TODO: temporary */
-typedef struct Mode Mode;
-void vis_mode_set(Vis*, Mode*);
bool vis_action_register(Vis*, KeyAction*);
@@ -335,6 +332,7 @@ bool vis_signal_handler(Vis*, int signum, const siginfo_t *siginfo,
const void *context);
/* TODO: temporary */
+typedef struct Mode Mode;
typedef struct Operator Operator;
typedef struct Movement Movement;
typedef struct TextObject TextObject;