1
- use std:: alloc:: { Layout , alloc, dealloc} ;
1
+ use std:: alloc:: { alloc, dealloc, Layout } ;
2
2
3
3
const HEADER : usize = 8 ;
4
4
const ALIGNMENT : usize = 8 ;
@@ -26,6 +26,8 @@ pub unsafe extern "C" fn enif_free(ptr: *mut u8) {
26
26
#[ no_mangle]
27
27
pub static enif_alloc_binary: usize = 0 ;
28
28
#[ no_mangle]
29
+ pub static enif_alloc_resource: usize = 0 ;
30
+ #[ no_mangle]
29
31
pub static enif_alloc_env: usize = 0 ;
30
32
#[ no_mangle]
31
33
pub static enif_binary_to_term: usize = 0 ;
@@ -98,6 +100,8 @@ pub static enif_is_ref: usize = 0;
98
100
#[ no_mangle]
99
101
pub static enif_is_tuple: usize = 0 ;
100
102
#[ no_mangle]
103
+ pub static enif_keep_resource: usize = 0 ;
104
+ #[ no_mangle]
101
105
pub static enif_make_atom_len: usize = 0 ;
102
106
#[ no_mangle]
103
107
pub static enif_make_badarg: usize = 0 ;
@@ -132,6 +136,10 @@ pub static enif_make_new_map: usize = 0;
132
136
#[ no_mangle]
133
137
pub static enif_make_reverse_list: usize = 0 ;
134
138
#[ no_mangle]
139
+ pub static enif_make_resource: usize = 0 ;
140
+ #[ no_mangle]
141
+ pub static enif_make_resource_binary: usize = 0 ;
142
+ #[ no_mangle]
135
143
pub static enif_make_sub_binary: usize = 0 ;
136
144
#[ no_mangle]
137
145
pub static enif_make_tuple_from_array: usize = 0 ;
@@ -158,12 +166,20 @@ pub static enif_realloc_binary: usize = 0;
158
166
#[ no_mangle]
159
167
pub static enif_release_binary: usize = 0 ;
160
168
#[ no_mangle]
169
+ pub static enif_release_resource: usize = 0 ;
170
+ #[ no_mangle]
161
171
pub static enif_schedule_nif: usize = 0 ;
162
172
#[ no_mangle]
163
173
pub static enif_self: usize = 0 ;
164
174
#[ no_mangle]
175
+ pub static enif_send: usize = 0 ;
176
+ #[ no_mangle]
165
177
pub static enif_snprintf: usize = 0 ;
166
178
#[ no_mangle]
167
179
pub static enif_term_to_binary: usize = 0 ;
168
180
#[ no_mangle]
169
181
pub static enif_term_type: usize = 0 ;
182
+ #[ no_mangle]
183
+ pub static enif_thread_type: usize = 0 ;
184
+ #[ no_mangle]
185
+ pub static enif_whereis_pid: usize = 0 ;
0 commit comments