forked from martanne/vis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvis-python.hh
More file actions
30 lines (25 loc) · 803 Bytes
/
vis-python.hh
File metadata and controls
30 lines (25 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef VIS_PY_H
#define VIS_PY_H
#if CONFIG_PYTHON
#include <Python.h>
#else
typedef struct py_State py_State;
#endif
#include "vis.hh"
/* add a directory to consider when loading py files */
bool vis_py_path_add(Vis*, const char *path);
/* get semi colon separated list of paths to load py files */
const char *vis_py_paths_get(Vis*);
/* various event handlers, triggered by the vis core */
void vis_py_init(Vis*);
void vis_py_start(Vis*);
void vis_py_quit(Vis*);
void vis_py_file_open(Vis*, File*);
void vis_py_file_save(Vis*, File*);
void vis_py_file_close(Vis*, File*);
void vis_py_win_open(Vis*, Win*);
void vis_py_win_close(Vis*, Win*);
void vis_py_win_highlight(Vis*, Win*, size_t horizon);
bool vis_py_win_syntax(Vis*, Win*, const char *syntax);
void vis_py_win_status(Vis*, Win*);
#endif