atc_router::ffi::router

Function router_new

Source
#[no_mangle]
pub unsafe extern "C" fn router_new(
    schema: &Schema,
) -> *mut Router<'_>
Expand description

Create a new router object associated with the schema.

§Arguments

  • schema: a valid pointer to the Schema object returned by [schema_new].

§Errors

This function never fails.

§Safety

Violating any of the following constraints will result in undefined behavior:

  • schema must be a valid pointer returned by [schema_new].