| 165 | |
| 166 | impl From<Arc<TaskContext>> for FFI_TaskContext { |
| 167 | fn from(ctx: Arc<TaskContext>) -> Self { |
| 168 | let private_data = Box::new(TaskContextPrivateData { ctx }); |
| 169 | |
| 170 | FFI_TaskContext { |
| 171 | session_id: session_id_fn_wrapper, |
| 172 | task_id: task_id_fn_wrapper, |
| 173 | session_config: session_config_fn_wrapper, |
| 174 | scalar_functions: scalar_functions_fn_wrapper, |
| 175 | aggregate_functions: aggregate_functions_fn_wrapper, |
| 176 | window_functions: window_functions_fn_wrapper, |
| 177 | release: release_fn_wrapper, |
| 178 | private_data: Box::into_raw(private_data) as *mut c_void, |
| 179 | library_marker_id: crate::get_library_marker_id, |
| 180 | } |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | impl From<FFI_TaskContext> for Arc<TaskContext> { |