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

include: Change some return types from int to enum

This also affects some new functions from 2.13.
This commit is contained in:
Nick Wellnhofer
2025-03-14 00:01:11 +01:00
parent fd1b939168
commit b349225952
21 changed files with 172 additions and 165 deletions

View File

@@ -218,9 +218,9 @@ typedef struct _xmlAttrHashBucket xmlAttrHashBucket;
* On success, @out should be set to a new parser input object and
* XML_ERR_OK should be returned.
*
* Returns an xmlParserError code.
* Returns an xmlParserErrors code.
*/
typedef int
typedef xmlParserErrors
(*xmlResourceLoader)(void *ctxt, const char *url, const char *publicId,
xmlResourceType type, xmlParserInputFlags flags,
xmlParserInputPtr *out);
@@ -1555,7 +1555,7 @@ XMLPUBFUN xmlDocPtr
* New input API
*/
XMLPUBFUN int
XMLPUBFUN xmlParserErrors
xmlNewInputFromUrl(const char *url, xmlParserInputFlags flags,
xmlParserInputPtr *out);
XMLPUBFUN xmlParserInputPtr
@@ -1570,7 +1570,7 @@ XMLPUBFUN xmlParserInputPtr
xmlNewInputFromIO(const char *url, xmlInputReadCallback ioRead,
xmlInputCloseCallback ioClose, void *ioCtxt,
xmlParserInputFlags flags);
XMLPUBFUN int
XMLPUBFUN xmlParserErrors
xmlInputSetEncodingHandler(xmlParserInputPtr input,
xmlCharEncodingHandlerPtr handler);