1use crate::nappgui::*;
2
3pub const _dtype_t_ekDTYPE_BOOL: _dtype_t = 0;
4pub const _dtype_t_ekDTYPE_INT: _dtype_t = 1;
5pub const _dtype_t_ekDTYPE_REAL: _dtype_t = 2;
6pub const _dtype_t_ekDTYPE_ENUM: _dtype_t = 3;
7pub const _dtype_t_ekDTYPE_STRING: _dtype_t = 4;
8pub const _dtype_t_ekDTYPE_STRUCT: _dtype_t = 5;
9pub const _dtype_t_ekDTYPE_BINARY: _dtype_t = 6;
10pub const _dtype_t_ekDTYPE_CONTAINER: _dtype_t = 7;
11pub const _dtype_t_ekDTYPE_UNKNOWN: _dtype_t = 8;
12pub type _dtype_t = ::libc::c_int;
13pub use self::_dtype_t as dtype_t;
14pub const _bindset_t_ekBINDSET_OK: _bindset_t = 0;
15pub const _bindset_t_ekBINDSET_UNCHANGED: _bindset_t = 1;
16pub const _bindset_t_ekBINDSET_NOT_ALLOWED: _bindset_t = 2;
17pub type _bindset_t = ::libc::c_int;
18pub use self::_bindset_t as bindset_t;
19#[repr(C)]
20#[derive(Debug, Copy, Clone)]
21pub struct _dbind_t {
22 _unused: [u8; 0],
23}
24pub type DBind = _dbind_t;
25pub type FPtr_str_create =
26 ::core::option::Option<unsafe extern "C" fn(str_: *const char_t) -> *mut ::libc::c_void>;
27pub type FPtr_str_get =
28 ::core::option::Option<unsafe extern "C" fn(arg1: *const ::libc::c_void) -> *const char_t>;
29pub type FPtr_container_create =
30 ::core::option::Option<unsafe extern "C" fn(type_: *const char_t, esize: u16) -> *mut byte_t>;
31pub type FPtr_container_size =
32 ::core::option::Option<unsafe extern "C" fn(cont: *const byte_t) -> u32>;
33pub type FPtr_container_get = ::core::option::Option<
34 unsafe extern "C" fn(
35 cont: *mut byte_t,
36 pos: u32,
37 type_: *const char_t,
38 esize: u16,
39 ) -> *mut byte_t,
40>;
41pub type FPtr_container_insert = ::core::option::Option<
42 unsafe extern "C" fn(
43 cont: *mut byte_t,
44 pos: u32,
45 n: u32,
46 type_: *const char_t,
47 esize: u16,
48 ) -> *mut byte_t,
49>;
50pub type FPtr_container_delete = ::core::option::Option<
51 unsafe extern "C" fn(cont: *mut byte_t, pos: u32, type_: *const char_t, esize: u16),
52>;
53pub type FPtr_container_destroy =
54 ::core::option::Option<unsafe extern "C" fn(cont: *mut *mut byte_t, type_: *const char_t)>;
55pub type FPtr_from_data = ::core::option::Option<
56 unsafe extern "C" fn(data: *const byte_t, size: u32) -> *mut ::libc::c_void,
57>;
58unsafe extern "C" {
59 pub fn respack_embedded(name: *const char_t) -> *mut ResPack;
60}
61unsafe extern "C" {
62 pub fn respack_packed(name: *const char_t, locale: *const char_t) -> *mut ResPack;
63}
64unsafe extern "C" {
65 pub fn respack_add_msg(pack: *mut ResPack, msg: *const char_t);
66}
67unsafe extern "C" {
68 pub fn respack_add_cdata(pack: *mut ResPack, type_: u32, data: *const byte_t, data_size: u32);
69}
70unsafe extern "C" {
71 pub fn respack_object_imp(
72 pack: *const ResPack,
73 id: ResId,
74 func_create: FPtr_from_data,
75 func_destroy: FPtr_destroy,
76 ) -> *mut ::libc::c_void;
77}
78unsafe extern "C" {
79 pub fn respack_aobj_imp(
80 packs: *const ArrPtResPack,
81 id: ResId,
82 func_create: FPtr_from_data,
83 func_destroy: FPtr_destroy,
84 is_resid: *mut bool_t,
85 ) -> *mut ::libc::c_void;
86}
87unsafe extern "C" {
88 pub fn respack_atext(
89 packs: *const ArrPtResPack,
90 id: ResId,
91 is_resid: *mut bool_t,
92 ) -> *const char_t;
93}
94unsafe extern "C" {
95 pub fn respack_afile(
96 packs: *const ArrPtResPack,
97 id: ResId,
98 size: *mut u32,
99 is_resid: *mut bool_t,
100 ) -> *const byte_t;
101}