9 typedef struct lua_State lua_State
;
14 /* add a directory to consider when loading lua files */
15 bool vis_lua_path_add(Vis
*, const char *path
);
16 /* get semicolon separated list of paths to load lua files
17 * (*lpath = package.path) and Lua C modules (*cpath = package.cpath)
18 * both these pointers need to be free(3)-ed by the caller */
19 bool vis_lua_paths_get(Vis
*, char **lpath
, char **cpath
);
21 /* various event handlers, triggered by the vis core */
22 void vis_lua_init(Vis
*);
23 void vis_lua_start(Vis
*);
24 void vis_lua_quit(Vis
*);
26 #define vis_lua_mode_insert_input vis_insert_key
27 #define vis_lua_mode_replace_input vis_replace_key
29 void vis_lua_mode_insert_input(Vis
*, const char *key
, size_t len
);
30 void vis_lua_mode_replace_input(Vis
*, const char *key
, size_t len
);
32 void vis_lua_file_open(Vis
*, File
*);
33 bool vis_lua_file_save_pre(Vis
*, File
*, const char *path
);
34 void vis_lua_file_save_post(Vis
*, File
*, const char *path
);
35 void vis_lua_file_close(Vis
*, File
*);
36 void vis_lua_win_open(Vis
*, Win
*);
37 void vis_lua_win_close(Vis
*, Win
*);
38 void vis_lua_win_highlight(Vis
*, Win
*);
39 void vis_lua_win_status(Vis
*, Win
*);
40 void vis_lua_term_csi(Vis
*, const long *);