aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/state.h')
-rw-r--r--src/nvim/state.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/nvim/state.h b/src/nvim/state.h
index 76a38b0dab..8c5957bf9a 100644
--- a/src/nvim/state.h
+++ b/src/nvim/state.h
@@ -1,22 +1,7 @@
-#ifndef NVIM_STATE_H
-#define NVIM_STATE_H
+#pragma once
-#include <stddef.h>
-
-struct vim_state;
-
-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;
-};
+#include "nvim/state_defs.h" // IWYU pragma: export
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "state.h.generated.h"
#endif
-
-#endif // NVIM_STATE_H