pub type xmlResourceLoader = Option<unsafe extern "C" fn(ctxt: *mut c_void, url: *const c_char, publicId: *const c_char, type_: xmlResourceType, flags: xmlParserInputFlags, out: *mut *mut xmlParserInput) -> xmlParserErrors>;Expand description
Callback for custom resource loaders.
flags can contain XML_INPUT_UNZIP and XML_INPUT_NETWORK.
The URL is resolved using XML catalogs before being passed to the callback.
On success, out should be set to a new parser input object and
XML_ERR_OK should be returned.
@param ctxt parser context @param url URL or system ID to load @param publicId publid ID from DTD (optional) @param type resource type @param flags flags @param out result pointer @returns an xmlParserErrors code.
Aliased Type§
pub enum xmlResourceLoader {
None,
Some(unsafe extern "C" fn(*mut c_void, *const i8, *const i8, u32, u32, *mut *mut _xmlParserInput) -> u32),
}