1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

realigned the parameters after taint

This commit is contained in:
Igor Zlatkovic
2003-08-25 10:34:41 +00:00
parent cd38635dc8
commit 93f984af39
4 changed files with 314 additions and 157 deletions

View File

@@ -21,105 +21,141 @@ extern "C" {
#endif #endif
XMLPUBFUN const xmlChar * XMLCALL XMLPUBFUN const xmlChar * XMLCALL
getPublicId (void *ctx); getPublicId (void *ctx);
XMLPUBFUN const xmlChar * XMLCALL getSystemId (void *ctx); XMLPUBFUN const xmlChar * XMLCALL
XMLPUBFUN void XMLCALL setDocumentLocator (void *ctx, getSystemId (void *ctx);
XMLPUBFUN void XMLCALL
setDocumentLocator (void *ctx,
xmlSAXLocatorPtr loc); xmlSAXLocatorPtr loc);
XMLPUBFUN int XMLCALL getLineNumber (void *ctx); XMLPUBFUN int XMLCALL
XMLPUBFUN int XMLCALL getColumnNumber (void *ctx); getLineNumber (void *ctx);
XMLPUBFUN int XMLCALL
getColumnNumber (void *ctx);
XMLPUBFUN int XMLCALL isStandalone (void *ctx); XMLPUBFUN int XMLCALL
XMLPUBFUN int XMLCALL hasInternalSubset (void *ctx); isStandalone (void *ctx);
XMLPUBFUN int XMLCALL hasExternalSubset (void *ctx); XMLPUBFUN int XMLCALL
hasInternalSubset (void *ctx);
XMLPUBFUN int XMLCALL
hasExternalSubset (void *ctx);
XMLPUBFUN void XMLCALL internalSubset (void *ctx, XMLPUBFUN void XMLCALL
internalSubset (void *ctx,
const xmlChar *name, const xmlChar *name,
const xmlChar *ExternalID, const xmlChar *ExternalID,
const xmlChar *SystemID); const xmlChar *SystemID);
XMLPUBFUN void XMLCALL externalSubset (void *ctx, XMLPUBFUN void XMLCALL
externalSubset (void *ctx,
const xmlChar *name, const xmlChar *name,
const xmlChar *ExternalID, const xmlChar *ExternalID,
const xmlChar *SystemID); const xmlChar *SystemID);
XMLPUBFUN xmlEntityPtr XMLCALL getEntity (void *ctx, XMLPUBFUN xmlEntityPtr XMLCALL
getEntity (void *ctx,
const xmlChar *name); const xmlChar *name);
XMLPUBFUN xmlEntityPtr XMLCALL getParameterEntity (void *ctx, XMLPUBFUN xmlEntityPtr XMLCALL
getParameterEntity (void *ctx,
const xmlChar *name); const xmlChar *name);
XMLPUBFUN xmlParserInputPtr XMLCALL resolveEntity (void *ctx, XMLPUBFUN xmlParserInputPtr XMLCALL
resolveEntity (void *ctx,
const xmlChar *publicId, const xmlChar *publicId,
const xmlChar *systemId); const xmlChar *systemId);
XMLPUBFUN void XMLCALL entityDecl (void *ctx, XMLPUBFUN void XMLCALL
entityDecl (void *ctx,
const xmlChar *name, const xmlChar *name,
int type, int type,
const xmlChar *publicId, const xmlChar *publicId,
const xmlChar *systemId, const xmlChar *systemId,
xmlChar *content); xmlChar *content);
XMLPUBFUN void XMLCALL attributeDecl (void *ctx, XMLPUBFUN void XMLCALL
attributeDecl (void *ctx,
const xmlChar *elem, const xmlChar *elem,
const xmlChar *fullname, const xmlChar *fullname,
int type, int type,
int def, int def,
const xmlChar *defaultValue, const xmlChar *defaultValue,
xmlEnumerationPtr tree); xmlEnumerationPtr tree);
XMLPUBFUN void XMLCALL elementDecl (void *ctx, XMLPUBFUN void XMLCALL
elementDecl (void *ctx,
const xmlChar *name, const xmlChar *name,
int type, int type,
xmlElementContentPtr content); xmlElementContentPtr content);
XMLPUBFUN void XMLCALL notationDecl (void *ctx, XMLPUBFUN void XMLCALL
notationDecl (void *ctx,
const xmlChar *name, const xmlChar *name,
const xmlChar *publicId, const xmlChar *publicId,
const xmlChar *systemId); const xmlChar *systemId);
XMLPUBFUN void XMLCALL unparsedEntityDecl (void *ctx, XMLPUBFUN void XMLCALL
unparsedEntityDecl (void *ctx,
const xmlChar *name, const xmlChar *name,
const xmlChar *publicId, const xmlChar *publicId,
const xmlChar *systemId, const xmlChar *systemId,
const xmlChar *notationName); const xmlChar *notationName);
XMLPUBFUN void XMLCALL startDocument (void *ctx); XMLPUBFUN void XMLCALL
XMLPUBFUN void XMLCALL endDocument (void *ctx); startDocument (void *ctx);
XMLPUBFUN void XMLCALL attribute (void *ctx, XMLPUBFUN void XMLCALL
endDocument (void *ctx);
XMLPUBFUN void XMLCALL
attribute (void *ctx,
const xmlChar *fullname, const xmlChar *fullname,
const xmlChar *value); const xmlChar *value);
XMLPUBFUN void XMLCALL startElement (void *ctx, XMLPUBFUN void XMLCALL
startElement (void *ctx,
const xmlChar *fullname, const xmlChar *fullname,
const xmlChar **atts); const xmlChar **atts);
XMLPUBFUN void XMLCALL endElement (void *ctx, XMLPUBFUN void XMLCALL
endElement (void *ctx,
const xmlChar *name); const xmlChar *name);
XMLPUBFUN void XMLCALL reference (void *ctx, XMLPUBFUN void XMLCALL
reference (void *ctx,
const xmlChar *name); const xmlChar *name);
XMLPUBFUN void XMLCALL characters (void *ctx, XMLPUBFUN void XMLCALL
characters (void *ctx,
const xmlChar *ch, const xmlChar *ch,
int len); int len);
XMLPUBFUN void XMLCALL ignorableWhitespace (void *ctx, XMLPUBFUN void XMLCALL
ignorableWhitespace (void *ctx,
const xmlChar *ch, const xmlChar *ch,
int len); int len);
XMLPUBFUN void XMLCALL processingInstruction (void *ctx, XMLPUBFUN void XMLCALL
processingInstruction (void *ctx,
const xmlChar *target, const xmlChar *target,
const xmlChar *data); const xmlChar *data);
XMLPUBFUN void XMLCALL globalNamespace (void *ctx, XMLPUBFUN void XMLCALL
globalNamespace (void *ctx,
const xmlChar *href, const xmlChar *href,
const xmlChar *prefix); const xmlChar *prefix);
XMLPUBFUN void XMLCALL setNamespace (void *ctx, XMLPUBFUN void XMLCALL
setNamespace (void *ctx,
const xmlChar *name); const xmlChar *name);
XMLPUBFUN xmlNsPtr XMLCALL getNamespace (void *ctx); XMLPUBFUN xmlNsPtr XMLCALL
XMLPUBFUN int XMLCALL checkNamespace (void *ctx, getNamespace (void *ctx);
XMLPUBFUN int XMLCALL
checkNamespace (void *ctx,
xmlChar *nameSpace); xmlChar *nameSpace);
XMLPUBFUN void XMLCALL namespaceDecl (void *ctx, XMLPUBFUN void XMLCALL
namespaceDecl (void *ctx,
const xmlChar *href, const xmlChar *href,
const xmlChar *prefix); const xmlChar *prefix);
XMLPUBFUN void XMLCALL comment (void *ctx, XMLPUBFUN void XMLCALL
comment (void *ctx,
const xmlChar *value); const xmlChar *value);
XMLPUBFUN void XMLCALL cdataBlock (void *ctx, XMLPUBFUN void XMLCALL
cdataBlock (void *ctx,
const xmlChar *value, const xmlChar *value,
int len); int len);
XMLPUBFUN void XMLCALL initxmlDefaultSAXHandler (xmlSAXHandler *hdlr, XMLPUBFUN void XMLCALL
initxmlDefaultSAXHandler (xmlSAXHandler *hdlr,
int warning); int warning);
#ifdef LIBXML_HTML_ENABLED #ifdef LIBXML_HTML_ENABLED
XMLPUBFUN void XMLCALL inithtmlDefaultSAXHandler (xmlSAXHandler *hdlr); XMLPUBFUN void XMLCALL
inithtmlDefaultSAXHandler (xmlSAXHandler *hdlr);
#endif #endif
#ifdef LIBXML_DOCB_ENABLED #ifdef LIBXML_DOCB_ENABLED
XMLPUBFUN void XMLCALL initdocbDefaultSAXHandler (xmlSAXHandler *hdlr); XMLPUBFUN void XMLCALL
initdocbDefaultSAXHandler (xmlSAXHandler *hdlr);
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@@ -21,106 +21,144 @@ extern "C" {
#endif #endif
XMLPUBFUN const xmlChar * XMLCALL XMLPUBFUN const xmlChar * XMLCALL
xmlSAX2GetPublicId (void *ctx); xmlSAX2GetPublicId (void *ctx);
XMLPUBFUN const xmlChar * XMLCALL xmlSAX2GetSystemId (void *ctx); XMLPUBFUN const xmlChar * XMLCALL
XMLPUBFUN void XMLCALL xmlSAX2SetDocumentLocator (void *ctx, xmlSAX2GetSystemId (void *ctx);
XMLPUBFUN void XMLCALL
xmlSAX2SetDocumentLocator (void *ctx,
xmlSAXLocatorPtr loc); xmlSAXLocatorPtr loc);
XMLPUBFUN int XMLCALL xmlSAX2GetLineNumber (void *ctx); XMLPUBFUN int XMLCALL
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber (void *ctx); xmlSAX2GetLineNumber (void *ctx);
XMLPUBFUN int XMLCALL
xmlSAX2GetColumnNumber (void *ctx);
XMLPUBFUN int XMLCALL xmlSAX2IsStandalone (void *ctx); XMLPUBFUN int XMLCALL
XMLPUBFUN int XMLCALL xmlSAX2HasInternalSubset (void *ctx); xmlSAX2IsStandalone (void *ctx);
XMLPUBFUN int XMLCALL xmlSAX2HasExternalSubset (void *ctx); XMLPUBFUN int XMLCALL
xmlSAX2HasInternalSubset (void *ctx);
XMLPUBFUN int XMLCALL
xmlSAX2HasExternalSubset (void *ctx);
XMLPUBFUN void XMLCALL xmlSAX2InternalSubset (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2InternalSubset (void *ctx,
const xmlChar *name, const xmlChar *name,
const xmlChar *ExternalID, const xmlChar *ExternalID,
const xmlChar *SystemID); const xmlChar *SystemID);
XMLPUBFUN void XMLCALL xmlSAX2ExternalSubset (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2ExternalSubset (void *ctx,
const xmlChar *name, const xmlChar *name,
const xmlChar *ExternalID, const xmlChar *ExternalID,
const xmlChar *SystemID); const xmlChar *SystemID);
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetEntity (void *ctx, XMLPUBFUN xmlEntityPtr XMLCALL
xmlSAX2GetEntity (void *ctx,
const xmlChar *name); const xmlChar *name);
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetParameterEntity (void *ctx, XMLPUBFUN xmlEntityPtr XMLCALL
xmlSAX2GetParameterEntity (void *ctx,
const xmlChar *name); const xmlChar *name);
XMLPUBFUN xmlParserInputPtr XMLCALL xmlSAX2ResolveEntity (void *ctx, XMLPUBFUN xmlParserInputPtr XMLCALL
xmlSAX2ResolveEntity (void *ctx,
const xmlChar *publicId, const xmlChar *publicId,
const xmlChar *systemId); const xmlChar *systemId);
XMLPUBFUN void XMLCALL xmlSAX2EntityDecl (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2EntityDecl (void *ctx,
const xmlChar *name, const xmlChar *name,
int type, int type,
const xmlChar *publicId, const xmlChar *publicId,
const xmlChar *systemId, const xmlChar *systemId,
xmlChar *content); xmlChar *content);
XMLPUBFUN void XMLCALL xmlSAX2AttributeDecl (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2AttributeDecl (void *ctx,
const xmlChar *elem, const xmlChar *elem,
const xmlChar *fullname, const xmlChar *fullname,
int type, int type,
int def, int def,
const xmlChar *defaultValue, const xmlChar *defaultValue,
xmlEnumerationPtr tree); xmlEnumerationPtr tree);
XMLPUBFUN void XMLCALL xmlSAX2ElementDecl (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2ElementDecl (void *ctx,
const xmlChar *name, const xmlChar *name,
int type, int type,
xmlElementContentPtr content); xmlElementContentPtr content);
XMLPUBFUN void XMLCALL xmlSAX2NotationDecl (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2NotationDecl (void *ctx,
const xmlChar *name, const xmlChar *name,
const xmlChar *publicId, const xmlChar *publicId,
const xmlChar *systemId); const xmlChar *systemId);
XMLPUBFUN void XMLCALL xmlSAX2UnparsedEntityDecl (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2UnparsedEntityDecl (void *ctx,
const xmlChar *name, const xmlChar *name,
const xmlChar *publicId, const xmlChar *publicId,
const xmlChar *systemId, const xmlChar *systemId,
const xmlChar *notationName); const xmlChar *notationName);
XMLPUBFUN void XMLCALL xmlSAX2StartDocument (void *ctx); XMLPUBFUN void XMLCALL
XMLPUBFUN void XMLCALL xmlSAX2EndDocument (void *ctx); xmlSAX2StartDocument (void *ctx);
XMLPUBFUN void XMLCALL xmlSAX2StartElement (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2EndDocument (void *ctx);
XMLPUBFUN void XMLCALL
xmlSAX2StartElement (void *ctx,
const xmlChar *fullname, const xmlChar *fullname,
const xmlChar **atts); const xmlChar **atts);
XMLPUBFUN void XMLCALL xmlSAX2EndElement (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2EndElement (void *ctx,
const xmlChar *name); const xmlChar *name);
XMLPUBFUN void XMLCALL xmlSAX2Reference (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2Reference (void *ctx,
const xmlChar *name); const xmlChar *name);
XMLPUBFUN void XMLCALL xmlSAX2Characters (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2Characters (void *ctx,
const xmlChar *ch, const xmlChar *ch,
int len); int len);
XMLPUBFUN void XMLCALL xmlSAX2IgnorableWhitespace (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2IgnorableWhitespace (void *ctx,
const xmlChar *ch, const xmlChar *ch,
int len); int len);
XMLPUBFUN void XMLCALL xmlSAX2ProcessingInstruction (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2ProcessingInstruction (void *ctx,
const xmlChar *target, const xmlChar *target,
const xmlChar *data); const xmlChar *data);
XMLPUBFUN void XMLCALL xmlSAX2GlobalNamespace (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2GlobalNamespace (void *ctx,
const xmlChar *href, const xmlChar *href,
const xmlChar *prefix); const xmlChar *prefix);
XMLPUBFUN void XMLCALL xmlSAX2SetNamespace (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2SetNamespace (void *ctx,
const xmlChar *name); const xmlChar *name);
XMLPUBFUN xmlNsPtr XMLCALL xmlSAX2GetNamespace (void *ctx); XMLPUBFUN xmlNsPtr XMLCALL
XMLPUBFUN int XMLCALL xmlSAX2CheckNamespace (void *ctx, xmlSAX2GetNamespace (void *ctx);
XMLPUBFUN int XMLCALL
xmlSAX2CheckNamespace (void *ctx,
xmlChar *nameSpace); xmlChar *nameSpace);
XMLPUBFUN void XMLCALL xmlSAX2NamespaceDecl (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2NamespaceDecl (void *ctx,
const xmlChar *href, const xmlChar *href,
const xmlChar *prefix); const xmlChar *prefix);
XMLPUBFUN void XMLCALL xmlSAX2Comment (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2Comment (void *ctx,
const xmlChar *value); const xmlChar *value);
XMLPUBFUN void XMLCALL xmlSAX2CDataBlock (void *ctx, XMLPUBFUN void XMLCALL
xmlSAX2CDataBlock (void *ctx,
const xmlChar *value, const xmlChar *value,
int len); int len);
XMLPUBFUN void XMLCALL xmlSAX2InitDefaultSAXHandler (xmlSAXHandler *hdlr, XMLPUBFUN void XMLCALL
xmlSAX2InitDefaultSAXHandler (xmlSAXHandler *hdlr,
int warning); int warning);
#ifdef LIBXML_HTML_ENABLED #ifdef LIBXML_HTML_ENABLED
XMLPUBFUN void XMLCALL xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr); XMLPUBFUN void XMLCALL
xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);
#endif #endif
#ifdef LIBXML_DOCB_ENABLED #ifdef LIBXML_DOCB_ENABLED
XMLPUBFUN void XMLCALL xmlSAX2InitDocbDefaultSAXHandler(xmlSAXHandler *hdlr); XMLPUBFUN void XMLCALL
xmlSAX2InitDocbDefaultSAXHandler(xmlSAXHandler *hdlr);
#endif #endif
XMLPUBFUN void XMLCALL xmlDefaultSAXHandlerInit (void); XMLPUBFUN void XMLCALL
XMLPUBFUN void XMLCALL htmlDefaultSAXHandlerInit (void); xmlDefaultSAXHandlerInit (void);
XMLPUBFUN void XMLCALL docbDefaultSAXHandlerInit (void); XMLPUBFUN void XMLCALL
htmlDefaultSAXHandlerInit (void);
XMLPUBFUN void XMLCALL
docbDefaultSAXHandlerInit (void);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@@ -196,113 +196,177 @@ XMLPUBFUN int XMLCALL xmlIsChar (int c);
*/ */
XMLPUBFUN xmlParserCtxtPtr XMLCALL XMLPUBFUN xmlParserCtxtPtr XMLCALL
xmlCreateFileParserCtxt (const char *filename); xmlCreateFileParserCtxt (const char *filename);
XMLPUBFUN xmlParserCtxtPtr XMLCALL xmlCreateMemoryParserCtxt(const char *buffer, XMLPUBFUN xmlParserCtxtPtr XMLCALL
xmlCreateMemoryParserCtxt(const char *buffer,
int size); int size);
XMLPUBFUN xmlParserCtxtPtr XMLCALL xmlNewParserCtxt (void); XMLPUBFUN xmlParserCtxtPtr XMLCALL
XMLPUBFUN xmlParserCtxtPtr XMLCALL xmlCreateEntityParserCtxt(const xmlChar *URL, xmlNewParserCtxt (void);
XMLPUBFUN xmlParserCtxtPtr XMLCALL
xmlCreateEntityParserCtxt(const xmlChar *URL,
const xmlChar *ID, const xmlChar *ID,
const xmlChar *base); const xmlChar *base);
XMLPUBFUN int XMLCALL xmlSwitchEncoding (xmlParserCtxtPtr ctxt, XMLPUBFUN int XMLCALL
xmlSwitchEncoding (xmlParserCtxtPtr ctxt,
xmlCharEncoding enc); xmlCharEncoding enc);
XMLPUBFUN int XMLCALL xmlSwitchToEncoding (xmlParserCtxtPtr ctxt, XMLPUBFUN int XMLCALL
xmlSwitchToEncoding (xmlParserCtxtPtr ctxt,
xmlCharEncodingHandlerPtr handler); xmlCharEncodingHandlerPtr handler);
/** /**
* Entities * Entities
*/ */
XMLPUBFUN void XMLCALL xmlHandleEntity (xmlParserCtxtPtr ctxt, XMLPUBFUN void XMLCALL
xmlHandleEntity (xmlParserCtxtPtr ctxt,
xmlEntityPtr entity); xmlEntityPtr entity);
/** /**
* Input Streams. * Input Streams.
*/ */
XMLPUBFUN xmlParserInputPtr XMLCALL xmlNewStringInputStream (xmlParserCtxtPtr ctxt, XMLPUBFUN xmlParserInputPtr XMLCALL
xmlNewStringInputStream (xmlParserCtxtPtr ctxt,
const xmlChar *buffer); const xmlChar *buffer);
XMLPUBFUN xmlParserInputPtr XMLCALL xmlNewEntityInputStream (xmlParserCtxtPtr ctxt, XMLPUBFUN xmlParserInputPtr XMLCALL
xmlNewEntityInputStream (xmlParserCtxtPtr ctxt,
xmlEntityPtr entity); xmlEntityPtr entity);
XMLPUBFUN void XMLCALL xmlPushInput (xmlParserCtxtPtr ctxt, XMLPUBFUN void XMLCALL
xmlPushInput (xmlParserCtxtPtr ctxt,
xmlParserInputPtr input); xmlParserInputPtr input);
XMLPUBFUN xmlChar XMLCALL xmlPopInput (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlChar XMLCALL
XMLPUBFUN void XMLCALL xmlFreeInputStream (xmlParserInputPtr input); xmlPopInput (xmlParserCtxtPtr ctxt);
XMLPUBFUN xmlParserInputPtr XMLCALL xmlNewInputFromFile (xmlParserCtxtPtr ctxt, XMLPUBFUN void XMLCALL
xmlFreeInputStream (xmlParserInputPtr input);
XMLPUBFUN xmlParserInputPtr XMLCALL
xmlNewInputFromFile (xmlParserCtxtPtr ctxt,
const char *filename); const char *filename);
XMLPUBFUN xmlParserInputPtr XMLCALL xmlNewInputStream (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlParserInputPtr XMLCALL
xmlNewInputStream (xmlParserCtxtPtr ctxt);
/** /**
* Namespaces. * Namespaces.
*/ */
XMLPUBFUN xmlChar * XMLCALL xmlSplitQName (xmlParserCtxtPtr ctxt, XMLPUBFUN xmlChar * XMLCALL
xmlSplitQName (xmlParserCtxtPtr ctxt,
const xmlChar *name, const xmlChar *name,
xmlChar **prefix); xmlChar **prefix);
XMLPUBFUN xmlChar * XMLCALL xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlChar * XMLCALL
XMLPUBFUN xmlChar * XMLCALL xmlNamespaceParseQName (xmlParserCtxtPtr ctxt, xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt);
XMLPUBFUN xmlChar * XMLCALL
xmlNamespaceParseQName (xmlParserCtxtPtr ctxt,
xmlChar **prefix); xmlChar **prefix);
XMLPUBFUN xmlChar * XMLCALL xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlChar * XMLCALL
XMLPUBFUN xmlChar * XMLCALL xmlParseQuotedString (xmlParserCtxtPtr ctxt); xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL xmlParseNamespace (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlChar * XMLCALL
xmlParseQuotedString (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParseNamespace (xmlParserCtxtPtr ctxt);
/** /**
* Generic production rules. * Generic production rules.
*/ */
XMLPUBFUN xmlChar * XMLCALL xmlScanName (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlChar * XMLCALL
XMLPUBFUN const xmlChar * XMLCALL xmlParseName (xmlParserCtxtPtr ctxt); xmlScanName (xmlParserCtxtPtr ctxt);
XMLPUBFUN xmlChar * XMLCALL xmlParseNmtoken (xmlParserCtxtPtr ctxt); XMLPUBFUN const xmlChar * XMLCALL
XMLPUBFUN xmlChar * XMLCALL xmlParseEntityValue (xmlParserCtxtPtr ctxt, xmlParseName (xmlParserCtxtPtr ctxt);
XMLPUBFUN xmlChar * XMLCALL
xmlParseNmtoken (xmlParserCtxtPtr ctxt);
XMLPUBFUN xmlChar * XMLCALL
xmlParseEntityValue (xmlParserCtxtPtr ctxt,
xmlChar **orig); xmlChar **orig);
XMLPUBFUN xmlChar * XMLCALL xmlParseAttValue (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlChar * XMLCALL
XMLPUBFUN xmlChar * XMLCALL xmlParseSystemLiteral (xmlParserCtxtPtr ctxt); xmlParseAttValue (xmlParserCtxtPtr ctxt);
XMLPUBFUN xmlChar * XMLCALL xmlParsePubidLiteral (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlChar * XMLCALL
XMLPUBFUN void XMLCALL xmlParseCharData (xmlParserCtxtPtr ctxt, xmlParseSystemLiteral (xmlParserCtxtPtr ctxt);
XMLPUBFUN xmlChar * XMLCALL
xmlParsePubidLiteral (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParseCharData (xmlParserCtxtPtr ctxt,
int cdata); int cdata);
XMLPUBFUN xmlChar * XMLCALL xmlParseExternalID (xmlParserCtxtPtr ctxt, XMLPUBFUN xmlChar * XMLCALL
xmlParseExternalID (xmlParserCtxtPtr ctxt,
xmlChar **publicID, xmlChar **publicID,
int strict); int strict);
XMLPUBFUN void XMLCALL xmlParseComment (xmlParserCtxtPtr ctxt); XMLPUBFUN void XMLCALL
XMLPUBFUN const xmlChar * XMLCALL xmlParsePITarget (xmlParserCtxtPtr ctxt); xmlParseComment (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL xmlParsePI (xmlParserCtxtPtr ctxt); XMLPUBFUN const xmlChar * XMLCALL
XMLPUBFUN void XMLCALL xmlParseNotationDecl (xmlParserCtxtPtr ctxt); xmlParsePITarget (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL xmlParseEntityDecl (xmlParserCtxtPtr ctxt); XMLPUBFUN void XMLCALL
XMLPUBFUN int XMLCALL xmlParseDefaultDecl (xmlParserCtxtPtr ctxt, xmlParsePI (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParseNotationDecl (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParseEntityDecl (xmlParserCtxtPtr ctxt);
XMLPUBFUN int XMLCALL
xmlParseDefaultDecl (xmlParserCtxtPtr ctxt,
xmlChar **value); xmlChar **value);
XMLPUBFUN xmlEnumerationPtr XMLCALL xmlParseNotationType (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlEnumerationPtr XMLCALL
XMLPUBFUN xmlEnumerationPtr XMLCALL xmlParseEnumerationType (xmlParserCtxtPtr ctxt); xmlParseNotationType (xmlParserCtxtPtr ctxt);
XMLPUBFUN int XMLCALL xmlParseEnumeratedType (xmlParserCtxtPtr ctxt, XMLPUBFUN xmlEnumerationPtr XMLCALL
xmlParseEnumerationType (xmlParserCtxtPtr ctxt);
XMLPUBFUN int XMLCALL
xmlParseEnumeratedType (xmlParserCtxtPtr ctxt,
xmlEnumerationPtr *tree); xmlEnumerationPtr *tree);
XMLPUBFUN int XMLCALL xmlParseAttributeType (xmlParserCtxtPtr ctxt, XMLPUBFUN int XMLCALL
xmlParseAttributeType (xmlParserCtxtPtr ctxt,
xmlEnumerationPtr *tree); xmlEnumerationPtr *tree);
XMLPUBFUN void XMLCALL xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt); XMLPUBFUN void XMLCALL
XMLPUBFUN xmlElementContentPtr XMLCALL xmlParseElementMixedContentDecl xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt);
XMLPUBFUN xmlElementContentPtr XMLCALL
xmlParseElementMixedContentDecl
(xmlParserCtxtPtr ctxt, (xmlParserCtxtPtr ctxt,
xmlParserInputPtr inputchk); xmlParserInputPtr inputchk);
XMLPUBFUN xmlElementContentPtr XMLCALL xmlParseElementChildrenContentDecl XMLPUBFUN xmlElementContentPtr XMLCALL
xmlParseElementChildrenContentDecl
(xmlParserCtxtPtr ctxt, (xmlParserCtxtPtr ctxt,
xmlParserInputPtr inputchk); xmlParserInputPtr inputchk);
XMLPUBFUN int XMLCALL xmlParseElementContentDecl(xmlParserCtxtPtr ctxt, XMLPUBFUN int XMLCALL
xmlParseElementContentDecl(xmlParserCtxtPtr ctxt,
const xmlChar *name, const xmlChar *name,
xmlElementContentPtr *result); xmlElementContentPtr *result);
XMLPUBFUN int XMLCALL xmlParseElementDecl (xmlParserCtxtPtr ctxt); XMLPUBFUN int XMLCALL
XMLPUBFUN void XMLCALL xmlParseMarkupDecl (xmlParserCtxtPtr ctxt); xmlParseElementDecl (xmlParserCtxtPtr ctxt);
XMLPUBFUN int XMLCALL xmlParseCharRef (xmlParserCtxtPtr ctxt); XMLPUBFUN void XMLCALL
XMLPUBFUN xmlEntityPtr XMLCALL xmlParseEntityRef (xmlParserCtxtPtr ctxt); xmlParseMarkupDecl (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL xmlParseReference (xmlParserCtxtPtr ctxt); XMLPUBFUN int XMLCALL
XMLPUBFUN void XMLCALL xmlParsePEReference (xmlParserCtxtPtr ctxt); xmlParseCharRef (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlEntityPtr XMLCALL
XMLPUBFUN const xmlChar * XMLCALL xmlParseAttribute (xmlParserCtxtPtr ctxt, xmlParseEntityRef (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParseReference (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParsePEReference (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt);
XMLPUBFUN const xmlChar * XMLCALL
xmlParseAttribute (xmlParserCtxtPtr ctxt,
xmlChar **value); xmlChar **value);
XMLPUBFUN const xmlChar * XMLCALL xmlParseStartTag (xmlParserCtxtPtr ctxt); XMLPUBFUN const xmlChar * XMLCALL
XMLPUBFUN void XMLCALL xmlParseEndTag (xmlParserCtxtPtr ctxt); xmlParseStartTag (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL xmlParseCDSect (xmlParserCtxtPtr ctxt); XMLPUBFUN void XMLCALL
XMLPUBFUN void XMLCALL xmlParseContent (xmlParserCtxtPtr ctxt); xmlParseEndTag (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL xmlParseElement (xmlParserCtxtPtr ctxt); XMLPUBFUN void XMLCALL
XMLPUBFUN xmlChar * XMLCALL xmlParseVersionNum (xmlParserCtxtPtr ctxt); xmlParseCDSect (xmlParserCtxtPtr ctxt);
XMLPUBFUN xmlChar * XMLCALL xmlParseVersionInfo (xmlParserCtxtPtr ctxt); XMLPUBFUN void XMLCALL
XMLPUBFUN xmlChar * XMLCALL xmlParseEncName (xmlParserCtxtPtr ctxt); xmlParseContent (xmlParserCtxtPtr ctxt);
XMLPUBFUN const xmlChar * XMLCALL xmlParseEncodingDecl (xmlParserCtxtPtr ctxt); XMLPUBFUN void XMLCALL
XMLPUBFUN int XMLCALL xmlParseSDDecl (xmlParserCtxtPtr ctxt); xmlParseElement (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL xmlParseXMLDecl (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlChar * XMLCALL
XMLPUBFUN void XMLCALL xmlParseTextDecl (xmlParserCtxtPtr ctxt); xmlParseVersionNum (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL xmlParseMisc (xmlParserCtxtPtr ctxt); XMLPUBFUN xmlChar * XMLCALL
XMLPUBFUN void XMLCALL xmlParseExternalSubset (xmlParserCtxtPtr ctxt, xmlParseVersionInfo (xmlParserCtxtPtr ctxt);
XMLPUBFUN xmlChar * XMLCALL
xmlParseEncName (xmlParserCtxtPtr ctxt);
XMLPUBFUN const xmlChar * XMLCALL
xmlParseEncodingDecl (xmlParserCtxtPtr ctxt);
XMLPUBFUN int XMLCALL
xmlParseSDDecl (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParseXMLDecl (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParseTextDecl (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParseMisc (xmlParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlParseExternalSubset (xmlParserCtxtPtr ctxt,
const xmlChar *ExternalID, const xmlChar *ExternalID,
const xmlChar *SystemID); const xmlChar *SystemID);
/** /**

View File

@@ -81,54 +81,73 @@ typedef enum {
*/ */
XMLPUBFUN xmlRelaxNGParserCtxtPtr XMLCALL XMLPUBFUN xmlRelaxNGParserCtxtPtr XMLCALL
xmlRelaxNGNewParserCtxt (const char *URL); xmlRelaxNGNewParserCtxt (const char *URL);
XMLPUBFUN xmlRelaxNGParserCtxtPtr XMLCALL xmlRelaxNGNewMemParserCtxt(const char *buffer, XMLPUBFUN xmlRelaxNGParserCtxtPtr XMLCALL
xmlRelaxNGNewMemParserCtxt (const char *buffer,
int size); int size);
XMLPUBFUN xmlRelaxNGParserCtxtPtr XMLCALL xmlRelaxNGNewDocParserCtxt(xmlDocPtr doc); XMLPUBFUN xmlRelaxNGParserCtxtPtr XMLCALL
xmlRelaxNGNewDocParserCtxt (xmlDocPtr doc);
XMLPUBFUN void XMLCALL xmlRelaxNGFreeParserCtxt (xmlRelaxNGParserCtxtPtr ctxt); XMLPUBFUN void XMLCALL
XMLPUBFUN void XMLCALL xmlRelaxNGSetParserErrors(xmlRelaxNGParserCtxtPtr ctxt, xmlRelaxNGFreeParserCtxt (xmlRelaxNGParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
xmlRelaxNGSetParserErrors(xmlRelaxNGParserCtxtPtr ctxt,
xmlRelaxNGValidityErrorFunc err, xmlRelaxNGValidityErrorFunc err,
xmlRelaxNGValidityWarningFunc warn, xmlRelaxNGValidityWarningFunc warn,
void *ctx); void *ctx);
XMLPUBFUN int XMLCALL xmlRelaxNGGetParserErrors(xmlRelaxNGParserCtxtPtr ctxt, XMLPUBFUN int XMLCALL
xmlRelaxNGGetParserErrors(xmlRelaxNGParserCtxtPtr ctxt,
xmlRelaxNGValidityErrorFunc *err, xmlRelaxNGValidityErrorFunc *err,
xmlRelaxNGValidityWarningFunc *warn, xmlRelaxNGValidityWarningFunc *warn,
void **ctx); void **ctx);
XMLPUBFUN xmlRelaxNGPtr XMLCALL xmlRelaxNGParse (xmlRelaxNGParserCtxtPtr ctxt); XMLPUBFUN xmlRelaxNGPtr XMLCALL
XMLPUBFUN void XMLCALL xmlRelaxNGFree (xmlRelaxNGPtr schema); xmlRelaxNGParse (xmlRelaxNGParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL xmlRelaxNGDump (FILE *output, XMLPUBFUN void XMLCALL
xmlRelaxNGFree (xmlRelaxNGPtr schema);
XMLPUBFUN void XMLCALL
xmlRelaxNGDump (FILE *output,
xmlRelaxNGPtr schema); xmlRelaxNGPtr schema);
XMLPUBFUN void XMLCALL xmlRelaxNGDumpTree (FILE * output, XMLPUBFUN void XMLCALL
xmlRelaxNGDumpTree (FILE * output,
xmlRelaxNGPtr schema); xmlRelaxNGPtr schema);
/* /*
* Interfaces for validating * Interfaces for validating
*/ */
XMLPUBFUN void XMLCALL xmlRelaxNGSetValidErrors(xmlRelaxNGValidCtxtPtr ctxt, XMLPUBFUN void XMLCALL
xmlRelaxNGSetValidErrors(xmlRelaxNGValidCtxtPtr ctxt,
xmlRelaxNGValidityErrorFunc err, xmlRelaxNGValidityErrorFunc err,
xmlRelaxNGValidityWarningFunc warn, xmlRelaxNGValidityWarningFunc warn,
void *ctx); void *ctx);
XMLPUBFUN int XMLCALL xmlRelaxNGGetValidErrors(xmlRelaxNGValidCtxtPtr ctxt, XMLPUBFUN int XMLCALL
xmlRelaxNGGetValidErrors(xmlRelaxNGValidCtxtPtr ctxt,
xmlRelaxNGValidityErrorFunc *err, xmlRelaxNGValidityErrorFunc *err,
xmlRelaxNGValidityWarningFunc *warn, xmlRelaxNGValidityWarningFunc *warn,
void **ctx); void **ctx);
XMLPUBFUN xmlRelaxNGValidCtxtPtr XMLCALL xmlRelaxNGNewValidCtxt (xmlRelaxNGPtr schema); XMLPUBFUN xmlRelaxNGValidCtxtPtr XMLCALL
XMLPUBFUN void XMLCALL xmlRelaxNGFreeValidCtxt (xmlRelaxNGValidCtxtPtr ctxt); xmlRelaxNGNewValidCtxt (xmlRelaxNGPtr schema);
XMLPUBFUN int XMLCALL xmlRelaxNGValidateDoc (xmlRelaxNGValidCtxtPtr ctxt, XMLPUBFUN void XMLCALL
xmlRelaxNGFreeValidCtxt (xmlRelaxNGValidCtxtPtr ctxt);
XMLPUBFUN int XMLCALL
xmlRelaxNGValidateDoc (xmlRelaxNGValidCtxtPtr ctxt,
xmlDocPtr doc); xmlDocPtr doc);
XMLPUBFUN void XMLCALL xmlRelaxNGCleanupTypes (void); XMLPUBFUN void XMLCALL
xmlRelaxNGCleanupTypes (void);
/* /*
* Interfaces for progressive validation when possible * Interfaces for progressive validation when possible
*/ */
XMLPUBFUN int XMLCALL xmlRelaxNGValidatePushElement (xmlRelaxNGValidCtxtPtr ctxt, XMLPUBFUN int XMLCALL
xmlRelaxNGValidatePushElement (xmlRelaxNGValidCtxtPtr ctxt,
xmlDocPtr doc, xmlDocPtr doc,
xmlNodePtr elem); xmlNodePtr elem);
XMLPUBFUN int XMLCALL xmlRelaxNGValidatePushCData (xmlRelaxNGValidCtxtPtr ctxt, XMLPUBFUN int XMLCALL
xmlRelaxNGValidatePushCData (xmlRelaxNGValidCtxtPtr ctxt,
const xmlChar *data, const xmlChar *data,
int len); int len);
XMLPUBFUN int XMLCALL xmlRelaxNGValidatePopElement (xmlRelaxNGValidCtxtPtr ctxt, XMLPUBFUN int XMLCALL
xmlRelaxNGValidatePopElement (xmlRelaxNGValidCtxtPtr ctxt,
xmlDocPtr doc, xmlDocPtr doc,
xmlNodePtr elem); xmlNodePtr elem);
XMLPUBFUN int XMLCALL xmlRelaxNGValidateFullElement (xmlRelaxNGValidCtxtPtr ctxt, XMLPUBFUN int XMLCALL
xmlRelaxNGValidateFullElement (xmlRelaxNGValidCtxtPtr ctxt,
xmlDocPtr doc, xmlDocPtr doc,
xmlNodePtr elem); xmlNodePtr elem);
#endif /* __XML_RELAX_NG__ */ #endif /* __XML_RELAX_NG__ */