1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

parser: Pass resource type to resource loader

This commit is contained in:
Nick Wellnhofer
2024-06-11 19:10:41 +02:00
parent f96dca9c0e
commit 5238404325
11 changed files with 99 additions and 55 deletions

View File

@@ -36,6 +36,16 @@ extern "C" {
*/
#define XML_DEFAULT_VERSION "1.0"
typedef enum {
XML_RESOURCE_UNKNOWN = 0,
XML_RESOURCE_MAIN_DOCUMENT,
XML_RESOURCE_DTD,
XML_RESOURCE_GENERAL_ENTITY,
XML_RESOURCE_PARAMETER_ENTITY,
XML_RESOURCE_XINCLUDE,
XML_RESOURCE_XINCLUDE_TEXT
} xmlResourceType;
/**
* xmlParserInput:
*
@@ -161,7 +171,7 @@ typedef struct _xmlAttrHashBucket xmlAttrHashBucket;
typedef int
(*xmlResourceLoader)(void *ctxt, const char *url, const char *publicId,
int type, int flags, xmlParserInputPtr *out);
xmlResourceType type, int flags, xmlParserInputPtr *out);
/**
* xmlParserCtxt: