MOre pre vtable changes
parent: tbd commit: 9cfa135
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | extern crate tracing; |
11 | |
12 | use ; |
13 | |
14 | use RuntimeState; |
15 | use WrapperApi; |
16 | |
17 | use PluginInitializationState; |
18 | use ; |
19 | |
20 | pub use ; |
21 | use ; |
22 | |
23 | |
24 | |
25 | plugin_meta: unsafe extern "C" fn , |
26 | load_host_vtable: unsafe extern "C" fn , |
27 | load_initialization_vtable: unsafe extern "C" fn , |
28 | initialize: unsafe extern "C" fn , |
29 | initialize_registration: unsafe extern "C" fn |
30 | init_state: *mut PluginInitializationState, |
31 | mut PluginInitializationState, | *
32 | load_type_metadata: unsafe extern "C" fn , |
33 | |
34 | |
35 | |
36 | ; |
37 | |
38 | |
39 | |
40 | Self |
41 | |
42 | |
43 | |
44 | FFIBox |
45 | |
46 | |
47 | pub unsafe |
48 | FFIBox |
49 | |
50 | |
51 | pub unsafe |
52 | Box from_raw |
53 | |
54 | |
55 | pub unsafe |
56 | unsafe .unwrap |
57 | |
58 | |
59 | |
60 | |
61 | |
62 | let slice: = unsafe ; |
63 | |
64 | let string = unsafe ; |
65 | |
66 | String from |
67 | |
68 | |
69 | |
70 | |
71 | |
72 | unsafe .unwrap |
73 | |
74 | |
75 | |
76 | |
77 | type Target = T; |
78 | |
79 | |
80 | unsafe .unwrap |
81 | |
82 | |
83 | |
84 | |
85 | |
86 | /// Can either be a pointer to `FFIData<T>` or to `T` |
87 | /// depending on the ownership of the FFI reference. |
88 | inner: *const (), |
89 | _marker: , |
90 | |
91 | |
92 | |
93 | |
94 | /// SAFETY: THIS VALUE COULD BE NULL. |
95 | drop_fn: *const extern "C" fn , |
96 | drop_state: *const (), |
97 | |
98 | allocation: T, |
99 | |
100 | |
101 | ; |
102 | |
103 | |
104 | |
105 | ; |
106 | |
107 | |
108 | |
109 | |
110 | |
111 | ; |
112 | |
113 | |
114 | |
115 | ; |
116 | |
117 | |
118 | |
119 | |
120 | |
121 | todo! |
122 | |
123 | |
124 | |
125 | todo! |
126 | |
127 | |
128 | |
129 | |
130 | |
131 | todo! |
132 | |
133 | |
134 | |
135 | |
136 | descriptor: , |
137 | _lifetime: , |
138 | |
139 | |
140 | |
141 | pub unsafe |
142 | todo! |
143 | |
144 | |
145 | |
146 | |
147 | pinned_owned: &'a , |
148 | |
149 | |
150 | |
151 | pub unsafe |
152 | todo! |
153 | |
154 | |
155 | |
156 | |
157 | |
158 | todo! |
159 | |
160 | |
161 | |
162 | |
163 | len: usize, |
164 | slice: T, |
165 | |
166 | |
167 | |
168 | let stack_ffi_value = FFI place_stack; |
169 | |
170 | let stack_ffi_ref = unsafe ; |
171 | |
172 | let foo = stack_ffi_ref; |
173 | |
174 | let heap_ffi_value = FFI place_heap; |
175 | |
176 | let heap_ffi_ref_guard = heap_ffi_value.ref_guard; |
177 | |
178 | let heap_ffi_ref = unsafe ; |
179 | |
180 |