Function imageflow::imageflow_context_create [] [src]

#[no_mangle]
pub unsafe extern fn imageflow_context_create() -> *mut Context

Creates and returns an imageflow context. An imageflow context is required for all other imageflow API calls.

An imageflow context tracks * error state * error messages * stack traces for errors (in C land, at least) * context-managed memory allocations * performance profiling information

Contexts are not thread-safe! Once you create a context, you are responsible for ensuring that it is never involved in two overlapping API calls.

Returns a null pointer if allocation fails.