ts_open_generic

Function ts_open_generic 

Source
pub unsafe extern "C" fn ts_open_generic(
    filename: *const c_char,
    whitespacesymbols: *const cst_string,
    singlecharsymbols: *const cst_string,
    prepunctsymbols: *const cst_string,
    postpunctsymbols: *const cst_string,
    streamtype_data: *mut c_void,
    open: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream, filename: *const c_char) -> c_int>,
    close: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream)>,
    eof: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream) -> c_int>,
    seek: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream, pos: c_int) -> c_int>,
    tell: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream) -> c_int>,
    size: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream) -> c_int>,
    getc: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream) -> c_int>,
) -> *mut cst_tokenstream