Skip to main content

setDocumentLocatorSAXFunc

Type Alias setDocumentLocatorSAXFunc 

Source
pub type setDocumentLocatorSAXFunc = Option<unsafe extern "C" fn(ctx: *mut c_void, loc: *mut xmlSAXLocator)>;
Expand description

This callback receives the “document locator” at startup, which is always the global xmlDefaultSAXLocator.

Everything is available on the context, so this is useless in our case.

@param ctx the user data (XML parser context) @param loc A SAX Locator

Aliased Type§

pub enum setDocumentLocatorSAXFunc {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *mut _xmlSAXLocator)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *mut _xmlSAXLocator))

Some value of type T.