atc_router::ffi::contextFunction context_new
Source #[no_mangle]
pub unsafe extern "C" fn context_new(
schema: &Schema,
) -> *mut Context<'_>
Expand description
Allocate a new context object associated with the schema.
§Errors
This function never returns an error, however, it can panic if memory allocation failed.
§Safety
Violating any of the following constraints will result in undefined behavior:
schema
must be a valid pointer returned by [schema_new
].