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
31
32
33
34
35
36
37
38
39
40
mod array;
mod collection;
mod dictionary;
mod error;
mod non_owning;
mod object;
mod string;

pub use array::*;
pub use collection::*;
pub use dictionary::*;
pub use error::Error;
pub use non_owning::NonOwning;
pub use object::{FromObjectError, Object, ObjectKind};
pub use string::String;

// https://github.com/neovim/neovim/blob/master/src/nvim/api/private/defs.h#L67
pub type Boolean = bool;

// https://github.com/neovim/neovim/blob/master/src/nvim/api/private/defs.h#L68
pub type Integer = i64;

// https://github.com/neovim/neovim/blob/master/src/nvim/api/private/defs.h#L69
pub type Float = libc::c_double;

// https://github.com/neovim/neovim/blob/master/src/nvim/types.h#L23
pub type LuaRef = libc::c_int;

// https://github.com/neovim/neovim/blob/master/src/nvim/types.h#L18
#[allow(non_camel_case_types)]
type handle_T = libc::c_int;

// https://github.com/neovim/neovim/blob/master/src/nvim/api/private/defs.h#L82
pub type BufHandle = handle_T;

// https://github.com/neovim/neovim/blob/master/src/nvim/api/private/defs.h#L83
pub type WinHandle = handle_T;

// https://github.com/neovim/neovim/blob/master/src/nvim/api/private/defs.h#L84
pub type TabHandle = handle_T;