aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/state.h
blob: 76a38b0dab79f3053a7dd9333286c71607239700 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef NVIM_STATE_H
#define NVIM_STATE_H

#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;
};

#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "state.h.generated.h"
#endif

#endif  // NVIM_STATE_H