1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
mod binding;

pub use binding::*;

pub unsafe extern "C" fn jbig2_ctx_new(
    allocator: *mut Jbig2Allocator,
    options: Jbig2Options,
    global_ctx: *mut Jbig2GlobalCtx,
    error_callback: Jbig2ErrorCallback,
    error_callback_data: *mut ::std::os::raw::c_void,
) -> *mut Jbig2Ctx {
    jbig2_ctx_new_imp(
        allocator,
        options,
        global_ctx,
        error_callback,
        error_callback_data,
        JBIG2_VERSION_MAJOR as _,
        JBIG2_VERSION_MINOR as _,
    )
}