#![allow(non_camel_case_types)]
use core::ffi::c_void;
use std::os::raw::{c_char, c_int, c_uint};
use crate::abi::structs::*;
pub type internalSubsetSAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
name: *const crate::abi::types::xmlChar,
ExternalID: *const crate::abi::types::xmlChar,
SystemID: *const crate::abi::types::xmlChar,
);
pub type isStandaloneSAXFunc = unsafe extern "C" fn(ctx: *mut c_void) -> c_int;
pub type hasInternalSubsetSAXFunc = unsafe extern "C" fn(ctx: *mut c_void) -> c_int;
pub type hasExternalSubsetSAXFunc = unsafe extern "C" fn(ctx: *mut c_void) -> c_int;
pub type resolveEntitySAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
publicId: *const crate::abi::types::xmlChar,
systemId: *const crate::abi::types::xmlChar,
) -> *mut _xmlParserInput;
pub type getEntitySAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
name: *const crate::abi::types::xmlChar,
) -> *mut _xmlEntity;
pub type entityDeclSAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
name: *const crate::abi::types::xmlChar,
type_: c_int,
publicId: *const crate::abi::types::xmlChar,
systemId: *const crate::abi::types::xmlChar,
content: *mut crate::abi::types::xmlChar,
);
pub type notationDeclSAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
name: *const crate::abi::types::xmlChar,
publicId: *const crate::abi::types::xmlChar,
systemId: *const crate::abi::types::xmlChar,
);
pub type attributeDeclSAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
elem: *const crate::abi::types::xmlChar,
name: *const crate::abi::types::xmlChar,
type_: c_int,
def: c_int,
defaultValue: *const crate::abi::types::xmlChar,
tree: *mut _xmlEnumeration,
);
pub type elementDeclSAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
name: *const crate::abi::types::xmlChar,
type_: c_int,
content: *mut _xmlElementContent,
);
pub type unparsedEntityDeclSAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
name: *const crate::abi::types::xmlChar,
publicId: *const crate::abi::types::xmlChar,
systemId: *const crate::abi::types::xmlChar,
notationName: *const crate::abi::types::xmlChar,
);
pub type setDocumentLocatorSAXFunc =
unsafe extern "C" fn(ctx: *mut c_void, loc: *mut _xmlSAXLocator);
pub type startDocumentSAXFunc = unsafe extern "C" fn(ctx: *mut c_void);
pub type endDocumentSAXFunc = unsafe extern "C" fn(ctx: *mut c_void);
pub type startElementSAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
name: *const crate::abi::types::xmlChar,
atts: *mut *const crate::abi::types::xmlChar,
);
pub type endElementSAXFunc =
unsafe extern "C" fn(ctx: *mut c_void, name: *const crate::abi::types::xmlChar);
pub type referenceSAXFunc =
unsafe extern "C" fn(ctx: *mut c_void, name: *const crate::abi::types::xmlChar);
pub type charactersSAXFunc =
unsafe extern "C" fn(ctx: *mut c_void, ch: *const crate::abi::types::xmlChar, len: c_int);
pub type ignorableWhitespaceSAXFunc =
unsafe extern "C" fn(ctx: *mut c_void, ch: *const crate::abi::types::xmlChar, len: c_int);
pub type processingInstructionSAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
target: *const crate::abi::types::xmlChar,
data: *const crate::abi::types::xmlChar,
);
pub type commentSAXFunc =
unsafe extern "C" fn(ctx: *mut c_void, value: *const crate::abi::types::xmlChar);
pub type warningSAXFunc = unsafe extern "C" fn(ctx: *mut c_void, msg: *const c_char);
pub type errorSAXFunc = unsafe extern "C" fn(ctx: *mut c_void, msg: *const c_char);
pub type fatalErrorSAXFunc = unsafe extern "C" fn(ctx: *mut c_void, msg: *const c_char);
pub type getParameterEntitySAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
name: *const crate::abi::types::xmlChar,
) -> *mut _xmlEntity;
pub type cdataBlockSAXFunc =
unsafe extern "C" fn(ctx: *mut c_void, value: *const crate::abi::types::xmlChar, len: c_int);
pub type externalSubsetSAXFunc = unsafe extern "C" fn(
ctx: *mut c_void,
name: *const crate::abi::types::xmlChar,
ExternalID: *const crate::abi::types::xmlChar,
SystemID: *const crate::abi::types::xmlChar,
);
pub type initSAXFunc = unsafe extern "C" fn(ctx: *mut c_void, handler: *mut _xmlSAXHandler);
pub type startElementNsSAX2Func = unsafe extern "C" fn(
ctx: *mut c_void,
localname: *const crate::abi::types::xmlChar,
prefix: *const crate::abi::types::xmlChar,
URI: *const crate::abi::types::xmlChar,
nb_namespaces: c_int,
namespaces: *mut *const crate::abi::types::xmlChar,
nb_attributes: c_int,
nb_defaulted: c_int,
attributes: *mut *const crate::abi::types::xmlChar,
);
pub type endElementNsSAX2Func = unsafe extern "C" fn(
ctx: *mut c_void,
localname: *const crate::abi::types::xmlChar,
prefix: *const crate::abi::types::xmlChar,
URI: *const crate::abi::types::xmlChar,
);
#[repr(C)]
pub struct _xmlSAXLocator {
pub getPublicId:
Option<unsafe extern "C" fn(ctx: *mut c_void) -> *const crate::abi::types::xmlChar>,
pub getSystemId:
Option<unsafe extern "C" fn(ctx: *mut c_void) -> *const crate::abi::types::xmlChar>,
pub getLineNumber: Option<unsafe extern "C" fn(ctx: *mut c_void) -> c_int>,
pub getColumnNumber: Option<unsafe extern "C" fn(ctx: *mut c_void) -> c_int>,
}
pub type xmlSAXLocatorPtr = *mut _xmlSAXLocator;
pub type xmlStructuredErrorFunc = unsafe extern "C" fn(ctx: *mut c_void, error: *const _xmlError);
pub type xmlGenericErrorFunc = unsafe extern "C" fn(ctx: *mut c_void, msg: *const c_char);
pub type xmlValidityErrorFunc = unsafe extern "C" fn(ctx: *mut c_void, msg: *const c_char);
pub type xmlValidityWarningFunc = unsafe extern "C" fn(ctx: *mut c_void, msg: *const c_char);
pub type xmlInputReadCallback =
unsafe extern "C" fn(context: *mut c_void, buffer: *mut c_char, len: c_int) -> c_int;
pub type xmlInputCloseCallback = unsafe extern "C" fn(context: *mut c_void) -> c_int;
pub type xmlOutputWriteCallback =
unsafe extern "C" fn(context: *mut c_void, buffer: *const c_char, len: c_int) -> c_int;
pub type xmlOutputCloseCallback = unsafe extern "C" fn(context: *mut c_void) -> c_int;
pub type xmlXPathVariableLookupFunc = unsafe extern "C" fn(
ctxt: *mut c_void,
name: *const crate::abi::types::xmlChar,
ns_uri: *const crate::abi::types::xmlChar,
) -> *mut _xmlXPathObject;
pub type xmlXPathFuncLookupFunc = unsafe extern "C" fn(
ctxt: *mut c_void,
name: *const crate::abi::types::xmlChar,
ns_uri: *const crate::abi::types::xmlChar,
) -> *mut c_void;
pub type xmlResourceLoader = unsafe extern "C" fn(
ctxt: *mut c_void,
url: *const c_char,
options: c_int,
type_: c_int,
) -> *mut _xmlParserInput;
pub type xmlCharEncConvImpl = unsafe extern "C" fn(
name: *mut *const crate::abi::types::xmlChar,
out: *mut *mut crate::abi::types::xmlChar,
outlen: *mut c_int,
in_: *const crate::abi::types::xmlChar,
inlen: *mut c_int,
) -> c_int;
pub type xmlCatalogPreferFunc = unsafe extern "C" fn() -> c_int;
pub type xmlFreeFunc = unsafe extern "C" fn(ptr: *mut c_void);
pub type xmlMallocFunc = unsafe extern "C" fn(size: usize) -> *mut c_void;
pub type xmlReallocFunc = unsafe extern "C" fn(ptr: *mut c_void, size: usize) -> *mut c_void;
pub type xmlStrdupFunc = unsafe extern "C" fn(str: *const c_char) -> *mut c_void;
pub type xmlModuleRegisterFunc = unsafe extern "C" fn(module: *mut c_void) -> c_int;
pub type xmlStreamCtxtPtr = *mut c_void;
pub type xmlHashDeallocator =
unsafe extern "C" fn(payload: *mut c_void, name: *mut crate::abi::types::xmlChar);
pub type xmlHashCopier = unsafe extern "C" fn(
payload: *mut c_void,
name: *const crate::abi::types::xmlChar,
) -> *mut c_void;
pub type xmlHashScanner = unsafe extern "C" fn(
payload: *mut c_void,
data: *mut c_void,
name: *const crate::abi::types::xmlChar,
);
pub type xmlHashScannerFull = unsafe extern "C" fn(
payload: *mut c_void,
data: *mut c_void,
name: *const crate::abi::types::xmlChar,
name2: *const crate::abi::types::xmlChar,
name3: *const crate::abi::types::xmlChar,
);