jbig2dec_sys/lib.rs
1mod binding;
2
3pub use binding::*;
4
5pub unsafe extern "C" fn jbig2_ctx_new(
6 allocator: *mut Jbig2Allocator,
7 options: Jbig2Options,
8 global_ctx: *mut Jbig2GlobalCtx,
9 error_callback: Jbig2ErrorCallback,
10 error_callback_data: *mut ::std::os::raw::c_void,
11) -> *mut Jbig2Ctx {
12 jbig2_ctx_new_imp(
13 allocator,
14 options,
15 global_ctx,
16 error_callback,
17 error_callback_data,
18 JBIG2_VERSION_MAJOR as _,
19 JBIG2_VERSION_MINOR as _,
20 )
21}