aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/state.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-10-26 11:24:51 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-10-26 11:24:51 -0300
commit29d64a901df6eff436b100374b2a240eea1906d9 (patch)
tree613b820fdc3d1d48a68146a4b516d05898798513 /src/nvim/state.h
parent424b00ea610b90ed4041711f27d71d0e359038a7 (diff)
parent1726c7d999e68b4ed8aee234b7dfa339ed0784b2 (diff)
downloadrneovim-29d64a901df6eff436b100374b2a240eea1906d9.tar.gz
rneovim-29d64a901df6eff436b100374b2a240eea1906d9.tar.bz2
rneovim-29d64a901df6eff436b100374b2a240eea1906d9.zip
Merge PR #3413 'Refactor Neovim to remove the side effects of `K_EVENT`'
Diffstat (limited to 'src/nvim/state.h')
-rw-r--r--src/nvim/state.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/state.h b/src/nvim/state.h
new file mode 100644
index 0000000000..8027514148
--- /dev/null
+++ b/src/nvim/state.h
@@ -0,0 +1,20 @@
+#ifndef NVIM_STATE_H
+#define NVIM_STATE_H
+
+#include <stddef.h>
+
+typedef struct vim_state VimState;
+
+typedef int(*state_check_callback)(VimState *state);
+typedef int(*state_execute_callback)(VimState *state, int key);
+
+struct vim_state {
+ state_check_callback check;
+ state_execute_callback execute;
+};
+
+#ifdef INCLUDE_GENERATED_DECLARATIONS
+# include "state.h.generated.h"
+#endif
+
+#endif // NVIM_STATE_H