Commit a930fbec authored by Kasimier T. Buchcik's avatar Kasimier T. Buchcik
Browse files

Added xmlRelaxNGSetParserStructuredErrors() to the API.

* relaxng.c include/libxml/relaxng.h: Added
  xmlRelaxNGSetParserStructuredErrors() to the API.
parent a617e24f
Mon Jan 9 17:27:15 CET 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
* relaxng.c include/libxml/relaxng.h: Added
xmlRelaxNGSetParserStructuredErrors() to the API.
Mon Jan 9 15:33:16 CET 2006 Daniel Veillard <daniel@veillard.com>
 
* parser.c: reverted first patches for #319279 which led to #326295
......
......@@ -127,6 +127,11 @@ XMLPUBFUN int XMLCALL
xmlRelaxNGValidityErrorFunc *err,
xmlRelaxNGValidityWarningFunc *warn,
void **ctx);
XMLPUBFUN void XMLCALL
xmlRelaxNGSetParserStructuredErrors(
xmlRelaxNGParserCtxtPtr ctxt,
xmlStructuredErrorFunc serror,
void *ctx);
XMLPUBFUN xmlRelaxNGPtr XMLCALL
xmlRelaxNGParse (xmlRelaxNGParserCtxtPtr ctxt);
XMLPUBFUN void XMLCALL
......
......@@ -7510,6 +7510,20 @@ xmlRelaxNGGetParserErrors(xmlRelaxNGParserCtxtPtr ctxt,
return (0);
}
void
xmlRelaxNGSetParserStructuredErrors(
xmlRelaxNGParserCtxtPtr ctxt,
xmlStructuredErrorFunc serror,
void *ctx)
{
if (ctxt == NULL)
return;
ctxt->serror = serror;
ctxt->error = NULL;
ctxt->warning = NULL;
ctxt->userData = ctx;
}
#ifdef LIBXML_OUTPUT_ENABLED
/************************************************************************
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment