include: Added error codes enum, cleanup existing enums.
This commit is contained in:
parent
756d33ddae
commit
9cf630fc98
|
@ -79,45 +79,135 @@ interface IXmlReader : IUnknown
|
||||||
}
|
}
|
||||||
|
|
||||||
/* IXmlReader state */
|
/* IXmlReader state */
|
||||||
cpp_quote("typedef enum XmlReadState")
|
typedef enum XmlReadState
|
||||||
cpp_quote("{")
|
{
|
||||||
cpp_quote(" XmlReadState_Initial = 0,")
|
XmlReadState_Initial,
|
||||||
cpp_quote(" XmlReadState_Interactive = 1,")
|
XmlReadState_Interactive,
|
||||||
cpp_quote(" XmlReadState_Error = 2,")
|
XmlReadState_Error,
|
||||||
cpp_quote(" XmlReadState_EndOfFile = 3,")
|
XmlReadState_EndOfFile,
|
||||||
cpp_quote(" XmlReadState_Closed = 4")
|
XmlReadState_Closed
|
||||||
cpp_quote("} XmlReadState;")
|
} XmlReadState;
|
||||||
|
|
||||||
/* conformance levels */
|
/* conformance levels */
|
||||||
cpp_quote("typedef enum XmlConformanceLevel")
|
typedef enum XmlConformanceLevel
|
||||||
cpp_quote("{")
|
{
|
||||||
cpp_quote(" XmlConformanceLevel_Auto = 0,")
|
XmlConformanceLevel_Auto,
|
||||||
cpp_quote(" XmlConformanceLevel_Fragment = 1,")
|
XmlConformanceLevel_Fragment,
|
||||||
cpp_quote(" XmlConformanceLevel_Document = 2,")
|
XmlConformanceLevel_Document,
|
||||||
cpp_quote(" _XmlConformanceLevel_Last = 2")
|
_XmlConformanceLevel_Last = XmlConformanceLevel_Document
|
||||||
cpp_quote("} XmlConformanceLevel;")
|
} XmlConformanceLevel;
|
||||||
|
|
||||||
/* DTD processing mode */
|
/* DTD processing mode */
|
||||||
cpp_quote("typedef enum DtdProcessing")
|
typedef enum DtdProcessing
|
||||||
cpp_quote("{")
|
{
|
||||||
cpp_quote(" DtdProcessing_Prohibit = 0,")
|
DtdProcessing_Prohibit,
|
||||||
cpp_quote(" DtdProcessing_Parse = DtdProcessing_Prohibit + 1,")
|
DtdProcessing_Parse,
|
||||||
cpp_quote(" _DtdProcessing_Last = DtdProcessing_Parse")
|
_DtdProcessing_Last = DtdProcessing_Parse
|
||||||
cpp_quote("} DtdProcessing;")
|
} DtdProcessing;
|
||||||
|
|
||||||
/* IXmlReader properties */
|
/* IXmlReader properties */
|
||||||
cpp_quote("typedef enum XmlReaderProperty")
|
typedef enum XmlReaderProperty
|
||||||
cpp_quote("{")
|
{
|
||||||
cpp_quote(" XmlReaderProperty_MultiLanguage = 0,")
|
XmlReaderProperty_MultiLanguage,
|
||||||
cpp_quote(" XmlReaderProperty_ConformanceLevel = XmlReaderProperty_MultiLanguage + 1,")
|
XmlReaderProperty_ConformanceLevel,
|
||||||
cpp_quote(" XmlReaderProperty_RandomAccess = XmlReaderProperty_ConformanceLevel + 1,")
|
XmlReaderProperty_RandomAccess,
|
||||||
cpp_quote(" XmlReaderProperty_XmlResolver = XmlReaderProperty_RandomAccess + 1,")
|
XmlReaderProperty_XmlResolver,
|
||||||
cpp_quote(" XmlReaderProperty_DtdProcessing = XmlReaderProperty_XmlResolver + 1,")
|
XmlReaderProperty_DtdProcessing,
|
||||||
cpp_quote(" XmlReaderProperty_ReadState = XmlReaderProperty_DtdProcessing + 1,")
|
XmlReaderProperty_ReadState,
|
||||||
cpp_quote(" XmlReaderProperty_MaxElementDepth = XmlReaderProperty_ReadState + 1,")
|
XmlReaderProperty_MaxElementDepth,
|
||||||
cpp_quote(" XmlReaderProperty_MaxEntityExpansion = XmlReaderProperty_MaxElementDepth + 1,")
|
XmlReaderProperty_MaxEntityExpansion,
|
||||||
cpp_quote(" _XmlReaderProperty_Last = XmlReaderProperty_MaxEntityExpansion")
|
_XmlReaderProperty_Last = XmlReaderProperty_MaxEntityExpansion
|
||||||
cpp_quote("} XmlReaderProperty;")
|
} XmlReaderProperty;
|
||||||
|
|
||||||
|
/* reader error codes */
|
||||||
|
typedef enum XmlError
|
||||||
|
{
|
||||||
|
MX_E_MX = 0xc00cee00,
|
||||||
|
MX_E_INPUTEND,
|
||||||
|
MX_E_ENCODING,
|
||||||
|
MX_E_ENCODINGSWITCH,
|
||||||
|
MX_E_ENCODINGSIGNATURE,
|
||||||
|
WC_E_WC = 0xc00cee20,
|
||||||
|
WC_E_WHITESPACE,
|
||||||
|
WC_E_SEMICOLON,
|
||||||
|
WC_E_GREATERTHAN,
|
||||||
|
WC_E_QUOTE,
|
||||||
|
WC_E_EQUAL,
|
||||||
|
WC_E_LESSTHAN,
|
||||||
|
WC_E_HEXDIGIT,
|
||||||
|
WC_E_DIGIT,
|
||||||
|
WC_E_LEFTBRACKET,
|
||||||
|
WC_E_LEFTPAREN,
|
||||||
|
WC_E_XMLCHARACTER,
|
||||||
|
WC_E_NAMECHARACTER,
|
||||||
|
WC_E_SYNTAX,
|
||||||
|
WC_E_CDSECT,
|
||||||
|
WC_E_COMMENT,
|
||||||
|
WC_E_CONDSECT,
|
||||||
|
WC_E_DECLATTLIST,
|
||||||
|
WC_E_DECLDOCTYPE,
|
||||||
|
WC_E_DECLELEMENT,
|
||||||
|
WC_E_DECLENTITY,
|
||||||
|
WC_E_DECLNOTATION,
|
||||||
|
WC_E_NDATA,
|
||||||
|
WC_E_PUBLIC,
|
||||||
|
WC_E_SYSTEM,
|
||||||
|
WC_E_NAME,
|
||||||
|
WC_E_ROOTELEMENT,
|
||||||
|
WC_E_ELEMENTMATCH,
|
||||||
|
WC_E_UNIQUEATTRIBUTE,
|
||||||
|
WC_E_TEXTXMLDECL,
|
||||||
|
WC_E_LEADINGXML,
|
||||||
|
WC_E_TEXTDECL,
|
||||||
|
WC_E_XMLDECL,
|
||||||
|
WC_E_ENCNAME,
|
||||||
|
WC_E_PUBLICID,
|
||||||
|
WC_E_PESINTERNALSUBSET,
|
||||||
|
WC_E_PESBETWEENDECLS,
|
||||||
|
WC_E_NORECURSION,
|
||||||
|
WC_E_ENTITYCONTENT,
|
||||||
|
WC_E_UNDECLAREDENTITY,
|
||||||
|
WC_E_PARSEDENTITY,
|
||||||
|
WC_E_NOEXTERNALENTITYREF,
|
||||||
|
WC_E_PI,
|
||||||
|
WC_E_SYSTEMID,
|
||||||
|
WC_E_QUESTIONMARK,
|
||||||
|
WC_E_CDSECTEND,
|
||||||
|
WC_E_MOREDATA,
|
||||||
|
WC_E_DTDPROHIBITED,
|
||||||
|
WC_E_INVALIDXMLSPACE,
|
||||||
|
NC_E_NC = 0xc00cee60,
|
||||||
|
NC_E_QNAMECHARACTER,
|
||||||
|
NC_E_QNAMECOLON,
|
||||||
|
NC_E_NAMECOLON,
|
||||||
|
NC_E_DECLAREDPREFIX,
|
||||||
|
NC_E_UNDECLAREDPREFIX,
|
||||||
|
NC_E_EMPTYURI,
|
||||||
|
NC_E_XMLPREFIXRESERVED,
|
||||||
|
NC_E_XMLNSPREFIXRESERVED,
|
||||||
|
NC_E_XMLURIRESERVED,
|
||||||
|
NC_E_XMLNSURIRESERVED,
|
||||||
|
SC_E_SC = 0xc00cee80,
|
||||||
|
SC_E_MAXELEMENTDEPTH,
|
||||||
|
SC_E_MAXENTITYEXPANSION,
|
||||||
|
WR_E_WR = 0xc00cef00,
|
||||||
|
WR_E_NONWHITESPACE,
|
||||||
|
WR_E_NSPREFIXDECLARED,
|
||||||
|
WR_E_NSPREFIXWITHEMPTYNSURI,
|
||||||
|
WR_E_DUPLICATEATTRIBUTE,
|
||||||
|
WR_E_XMLNSPREFIXDECLARATION,
|
||||||
|
WR_E_XMLPREFIXDECLARATION,
|
||||||
|
WR_E_XMLURIDECLARATION,
|
||||||
|
WR_E_XMLNSURIDECLARATION,
|
||||||
|
WR_E_NAMESPACEUNDECLARED,
|
||||||
|
WR_E_INVALIDXMLSPACE,
|
||||||
|
WR_E_INVALIDACTION,
|
||||||
|
WR_E_INVALIDSURROGATEPAIR,
|
||||||
|
XML_E_INVALID_DECIMAL = 0xc00ce01d,
|
||||||
|
XML_E_INVALID_HEXIDECIMAL,
|
||||||
|
XML_E_INVALID_UNICODE,
|
||||||
|
XML_E_INVALIDENCODING = 0xc00ce06e
|
||||||
|
} XmlError;
|
||||||
|
|
||||||
/* IXmlReader construction */
|
/* IXmlReader construction */
|
||||||
cpp_quote("STDAPI CreateXmlReader(REFIID riid, void **ppvObject, IMalloc *pMalloc);")
|
cpp_quote("STDAPI CreateXmlReader(REFIID riid, void **ppvObject, IMalloc *pMalloc);")
|
||||||
|
|
Loading…
Reference in New Issue