aboutsummaryrefslogtreecommitdiff
path: root/vis-core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vis-core.h')
-rw-r--r--vis-core.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/vis-core.h b/vis-core.h
index 05ddca8..5dc2a64 100644
--- a/vis-core.h
+++ b/vis-core.h
@@ -184,6 +184,22 @@ struct Vis {
Array textobjects;
};
+enum VisEvents {
+ VIS_EVENT_INIT,
+ VIS_EVENT_START,
+ VIS_EVENT_QUIT,
+ VIS_EVENT_FILE_OPEN,
+ VIS_EVENT_FILE_SAVE,
+ VIS_EVENT_FILE_CLOSE,
+ VIS_EVENT_WIN_OPEN,
+ VIS_EVENT_WIN_CLOSE,
+ VIS_EVENT_WIN_HIGHLIGHT,
+ VIS_EVENT_WIN_SYNTAX,
+ VIS_EVENT_WIN_STATUS,
+};
+
+bool vis_event_emit(Vis*, enum VisEvents, ...);
+
/** stuff used by multiple of the vis-* files */
extern Mode vis_modes[VIS_MODE_INVALID];