mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
patch from Stphane Bidoul for better per context error message APIs
* xmlreader.c python/drv_libxml2.py python/generator.py python/libxml.c python/libxml.py python/libxml_wrap.h python/types.c: patch from Stphane Bidoul for better per context error message APIs * python/tests/ctxterror.py python/tests/readererr.py: update of the tests Daniel
This commit is contained in:
@@ -24,11 +24,11 @@ typedef enum {
|
||||
} xmlParserProperties;
|
||||
|
||||
typedef enum {
|
||||
XMLREADER_SEVERITY_VALIDITY_WARNING = 1,
|
||||
XMLREADER_SEVERITY_VALIDITY_ERROR = 2,
|
||||
XMLREADER_SEVERITY_WARNING = 3,
|
||||
XMLREADER_SEVERITY_ERROR = 4
|
||||
} xmlReaderSeverities;
|
||||
XML_PARSER_SEVERITY_VALIDITY_WARNING = 1,
|
||||
XML_PARSER_SEVERITY_VALIDITY_ERROR = 2,
|
||||
XML_PARSER_SEVERITY_WARNING = 3,
|
||||
XML_PARSER_SEVERITY_ERROR = 4
|
||||
} xmlParserSeverities;
|
||||
|
||||
typedef struct _xmlTextReader xmlTextReader;
|
||||
typedef xmlTextReader *xmlTextReaderPtr;
|
||||
@@ -110,12 +110,14 @@ xmlDocPtr xmlTextReaderCurrentDoc (xmlTextReaderPtr reader);
|
||||
/*
|
||||
* Error handling extensions
|
||||
*/
|
||||
typedef void (*xmlTextReaderErrorFunc) (void *arg,
|
||||
typedef void * xmlTextReaderLocatorPtr;
|
||||
typedef void (*xmlTextReaderErrorFunc) (void *arg,
|
||||
const char *msg,
|
||||
int line,
|
||||
int col,
|
||||
const char *URI,
|
||||
xmlReaderSeverities severity);
|
||||
xmlParserSeverities severity,
|
||||
xmlTextReaderLocatorPtr locator);
|
||||
int xmlTextReaderLocatorLineNumber (xmlTextReaderLocatorPtr locator);
|
||||
/*int xmlTextReaderLocatorLinePosition(xmlTextReaderLocatorPtr locator);*/
|
||||
xmlChar * xmlTextReaderLocatorBaseURI (xmlTextReaderLocatorPtr locator);
|
||||
void xmlTextReaderSetErrorHandler (xmlTextReaderPtr reader,
|
||||
xmlTextReaderErrorFunc f,
|
||||
void *arg);
|
||||
|
Reference in New Issue
Block a user