ReactOS 0.4.17-dev-966-gf06eace
xmllite.idl File Reference

Go to the source code of this file.

Classes

interface  IXmlReader
 
interface  IXmlResolver
 
interface  IXmlWriter
 

Typedefs

typedef enum XmlNodeType XmlNodeType
 
typedef enum XmlReadState XmlReadState
 
typedef enum XmlConformanceLevel XmlConformanceLevel
 
typedef enum DtdProcessing DtdProcessing
 
typedef enum XmlReaderProperty XmlReaderProperty
 
typedef enum XmlError XmlError
 
typedef IUnknown IXmlReaderInput
 
typedef enum XmlStandalone XmlStandalone
 
typedef enum XmlWriterProperty XmlWriterProperty
 
typedef IUnknown IXmlWriterOutput
 

Enumerations

enum  XmlNodeType {
  XmlNodeType_None = 0 , XmlNodeType_Element = 1 , XmlNodeType_Attribute = 2 , XmlNodeType_Text = 3 ,
  XmlNodeType_CDATA = 4 , XmlNodeType_ProcessingInstruction = 7 , XmlNodeType_Comment = 8 , XmlNodeType_DocumentType = 10 ,
  XmlNodeType_Whitespace = 13 , XmlNodeType_EndElement = 15 , XmlNodeType_XmlDeclaration = 17 , _XmlNodeType_Last = 17
}
 
enum  XmlReadState {
  XmlReadState_Initial , XmlReadState_Interactive , XmlReadState_Error , XmlReadState_EndOfFile ,
  XmlReadState_Closed
}
 
enum  XmlConformanceLevel { XmlConformanceLevel_Auto , XmlConformanceLevel_Fragment , XmlConformanceLevel_Document , _XmlConformanceLevel_Last = XmlConformanceLevel_Document }
 
enum  DtdProcessing { DtdProcessing_Prohibit , DtdProcessing_Parse , _DtdProcessing_Last = DtdProcessing_Parse }
 
enum  XmlReaderProperty {
  XmlReaderProperty_MultiLanguage , XmlReaderProperty_ConformanceLevel , XmlReaderProperty_RandomAccess , XmlReaderProperty_XmlResolver ,
  XmlReaderProperty_DtdProcessing , XmlReaderProperty_ReadState , XmlReaderProperty_MaxElementDepth , XmlReaderProperty_MaxEntityExpansion ,
  _XmlReaderProperty_Last = XmlReaderProperty_MaxEntityExpansion
}
 
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
}
 
enum  XmlStandalone { XmlStandalone_Omit , XmlStandalone_Yes , XmlStandalone_No , _XmlStandalone_Last = XmlStandalone_No }
 
enum  XmlWriterProperty {
  XmlWriterProperty_MultiLanguage , XmlWriterProperty_Indent , XmlWriterProperty_ByteOrderMark , XmlWriterProperty_OmitXmlDeclaration ,
  XmlWriterProperty_ConformanceLevel , _XmlWriterProperty_Last = XmlWriterProperty_OmitXmlDeclaration
}
 

Functions

STDAPI CreateXmlReader (REFIID riid, void **ppvObject, IMalloc *pMalloc)
 
STDAPI CreateXmlReaderInputWithEncodingCodePage (IUnknown *stream, IMalloc *pMalloc, UINT encoding_codepage, BOOL hint, const WCHAR *base_uri, IXmlReaderInput **pInput)
 
STDAPI CreateXmlReaderInputWithEncodingName (IUnknown *stream, IMalloc *pMalloc, LPCWSTR encoding, BOOL hint, LPCWSTR base_uri, IXmlReaderInput **ppInput)
 
STDAPI CreateXmlWriter (REFIID riid, void **ppvObject, IMalloc *pMalloc)
 
STDAPI CreateXmlWriterOutputWithEncodingName (IUnknown *stream, IMalloc *pMalloc, LPCWSTR encoding, IXmlWriterOutput **output)
 
STDAPI CreateXmlWriterOutputWithEncodingCodePage (IUnknown *stream, IMalloc *pMalloc, UINT codepage, IXmlWriterOutput **output)
 

Typedef Documentation

◆ DtdProcessing

◆ IXmlReaderInput

Definition at line 230 of file xmllite.idl.

◆ IXmlWriterOutput

Definition at line 302 of file xmllite.idl.

◆ XmlConformanceLevel

◆ XmlError

◆ XmlNodeType

◆ XmlReaderProperty

◆ XmlReadState

◆ XmlStandalone

◆ XmlWriterProperty

Enumeration Type Documentation

◆ DtdProcessing

Enumerator
DtdProcessing_Prohibit 
DtdProcessing_Parse 
_DtdProcessing_Last 

Definition at line 116 of file xmllite.idl.

117{
DtdProcessing
Definition: xmllite.idl:117
@ DtdProcessing_Parse
Definition: xmllite.idl:119
@ _DtdProcessing_Last
Definition: xmllite.idl:120
@ DtdProcessing_Prohibit
Definition: xmllite.idl:118

◆ XmlConformanceLevel

Enumerator
XmlConformanceLevel_Auto 
XmlConformanceLevel_Fragment 
XmlConformanceLevel_Document 
_XmlConformanceLevel_Last 

Definition at line 107 of file xmllite.idl.

108{
XmlConformanceLevel
Definition: xmllite.idl:108
@ XmlConformanceLevel_Document
Definition: xmllite.idl:111
@ XmlConformanceLevel_Auto
Definition: xmllite.idl:109
@ _XmlConformanceLevel_Last
Definition: xmllite.idl:112
@ XmlConformanceLevel_Fragment
Definition: xmllite.idl:110

◆ XmlError

Enumerator
MX_E_MX 
MX_E_INPUTEND 
MX_E_ENCODING 
MX_E_ENCODINGSWITCH 
MX_E_ENCODINGSIGNATURE 
WC_E_WC 
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 
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 
SC_E_MAXELEMENTDEPTH 
SC_E_MAXENTITYEXPANSION 
WR_E_WR 
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 
XML_E_INVALID_HEXIDECIMAL 
XML_E_INVALID_UNICODE 
XML_E_INVALIDENCODING 

Definition at line 138 of file xmllite.idl.

139{
140 MX_E_MX = 0xc00cee00,
145 WC_E_WC = 0xc00cee20,
170 WC_E_NAME,
187 WC_E_PI,
194 NC_E_NC = 0xc00cee60,
205 SC_E_SC = 0xc00cee80,
208 WR_E_WR = 0xc00cef00,
221 XML_E_INVALID_DECIMAL = 0xc00ce01d,
224 XML_E_INVALIDENCODING = 0xc00ce06e
225} XmlError;
XmlError
Definition: xmllite.idl:139
@ NC_E_XMLNSURIRESERVED
Definition: xmllite.idl:204
@ WC_E_WHITESPACE
Definition: xmllite.idl:146
@ WC_E_UNIQUEATTRIBUTE
Definition: xmllite.idl:173
@ WC_E_LESSTHAN
Definition: xmllite.idl:151
@ WC_E_NORECURSION
Definition: xmllite.idl:182
@ NC_E_UNDECLAREDPREFIX
Definition: xmllite.idl:199
@ WC_E_CDSECT
Definition: xmllite.idl:159
@ WC_E_PI
Definition: xmllite.idl:187
@ MX_E_ENCODING
Definition: xmllite.idl:142
@ WR_E_XMLPREFIXDECLARATION
Definition: xmllite.idl:214
@ WC_E_XMLDECL
Definition: xmllite.idl:177
@ WR_E_INVALIDXMLSPACE
Definition: xmllite.idl:218
@ WC_E_INVALIDXMLSPACE
Definition: xmllite.idl:193
@ WC_E_PESINTERNALSUBSET
Definition: xmllite.idl:180
@ WC_E_NDATA
Definition: xmllite.idl:167
@ WR_E_NONWHITESPACE
Definition: xmllite.idl:209
@ SC_E_SC
Definition: xmllite.idl:205
@ WC_E_CONDSECT
Definition: xmllite.idl:161
@ WC_E_PUBLIC
Definition: xmllite.idl:168
@ MX_E_ENCODINGSIGNATURE
Definition: xmllite.idl:144
@ WC_E_EQUAL
Definition: xmllite.idl:150
@ NC_E_NC
Definition: xmllite.idl:194
@ WC_E_DIGIT
Definition: xmllite.idl:153
@ WC_E_QUESTIONMARK
Definition: xmllite.idl:189
@ NC_E_DECLAREDPREFIX
Definition: xmllite.idl:198
@ WC_E_WC
Definition: xmllite.idl:145
@ NC_E_QNAMECOLON
Definition: xmllite.idl:196
@ WC_E_SYSTEM
Definition: xmllite.idl:169
@ XML_E_INVALID_HEXIDECIMAL
Definition: xmllite.idl:222
@ WC_E_DECLDOCTYPE
Definition: xmllite.idl:163
@ NC_E_EMPTYURI
Definition: xmllite.idl:200
@ WC_E_LEFTPAREN
Definition: xmllite.idl:155
@ WR_E_XMLURIDECLARATION
Definition: xmllite.idl:215
@ XML_E_INVALID_DECIMAL
Definition: xmllite.idl:221
@ WC_E_SYNTAX
Definition: xmllite.idl:158
@ WC_E_SYSTEMID
Definition: xmllite.idl:188
@ WC_E_TEXTDECL
Definition: xmllite.idl:176
@ MX_E_ENCODINGSWITCH
Definition: xmllite.idl:143
@ WR_E_NAMESPACEUNDECLARED
Definition: xmllite.idl:217
@ WC_E_UNDECLAREDENTITY
Definition: xmllite.idl:184
@ WC_E_LEFTBRACKET
Definition: xmllite.idl:154
@ NC_E_XMLPREFIXRESERVED
Definition: xmllite.idl:201
@ WC_E_PARSEDENTITY
Definition: xmllite.idl:185
@ WC_E_DECLNOTATION
Definition: xmllite.idl:166
@ WR_E_DUPLICATEATTRIBUTE
Definition: xmllite.idl:212
@ NC_E_XMLURIRESERVED
Definition: xmllite.idl:203
@ SC_E_MAXELEMENTDEPTH
Definition: xmllite.idl:206
@ WC_E_ENTITYCONTENT
Definition: xmllite.idl:183
@ WC_E_GREATERTHAN
Definition: xmllite.idl:148
@ WC_E_LEADINGXML
Definition: xmllite.idl:175
@ WR_E_NSPREFIXDECLARED
Definition: xmllite.idl:210
@ WC_E_CDSECTEND
Definition: xmllite.idl:190
@ WC_E_ROOTELEMENT
Definition: xmllite.idl:171
@ WC_E_DECLELEMENT
Definition: xmllite.idl:164
@ WC_E_NAMECHARACTER
Definition: xmllite.idl:157
@ WC_E_ENCNAME
Definition: xmllite.idl:178
@ WR_E_WR
Definition: xmllite.idl:208
@ WC_E_DECLATTLIST
Definition: xmllite.idl:162
@ WR_E_XMLNSURIDECLARATION
Definition: xmllite.idl:216
@ WC_E_SEMICOLON
Definition: xmllite.idl:147
@ WC_E_ELEMENTMATCH
Definition: xmllite.idl:172
@ NC_E_NAMECOLON
Definition: xmllite.idl:197
@ XML_E_INVALID_UNICODE
Definition: xmllite.idl:223
@ WC_E_XMLCHARACTER
Definition: xmllite.idl:156
@ NC_E_QNAMECHARACTER
Definition: xmllite.idl:195
@ MX_E_MX
Definition: xmllite.idl:140
@ NC_E_XMLNSPREFIXRESERVED
Definition: xmllite.idl:202
@ WC_E_QUOTE
Definition: xmllite.idl:149
@ WR_E_INVALIDSURROGATEPAIR
Definition: xmllite.idl:220
@ WC_E_TEXTXMLDECL
Definition: xmllite.idl:174
@ WC_E_DTDPROHIBITED
Definition: xmllite.idl:192
@ WC_E_DECLENTITY
Definition: xmllite.idl:165
@ MX_E_INPUTEND
Definition: xmllite.idl:141
@ WC_E_MOREDATA
Definition: xmllite.idl:191
@ SC_E_MAXENTITYEXPANSION
Definition: xmllite.idl:207
@ WR_E_XMLNSPREFIXDECLARATION
Definition: xmllite.idl:213
@ WC_E_HEXDIGIT
Definition: xmllite.idl:152
@ WC_E_COMMENT
Definition: xmllite.idl:160
@ WC_E_NOEXTERNALENTITYREF
Definition: xmllite.idl:186
@ WR_E_NSPREFIXWITHEMPTYNSURI
Definition: xmllite.idl:211
@ WC_E_PESBETWEENDECLS
Definition: xmllite.idl:181
@ WC_E_NAME
Definition: xmllite.idl:170
@ WC_E_PUBLICID
Definition: xmllite.idl:179
@ XML_E_INVALIDENCODING
Definition: xmllite.idl:224
@ WR_E_INVALIDACTION
Definition: xmllite.idl:219

◆ XmlNodeType

Enumerator
XmlNodeType_None 
XmlNodeType_Element 
XmlNodeType_Attribute 
XmlNodeType_Text 
XmlNodeType_CDATA 
XmlNodeType_ProcessingInstruction 
XmlNodeType_Comment 
XmlNodeType_DocumentType 
XmlNodeType_Whitespace 
XmlNodeType_EndElement 
XmlNodeType_XmlDeclaration 
_XmlNodeType_Last 

Definition at line 23 of file xmllite.idl.

23 {
XmlNodeType
Definition: xmllite.idl:23
@ XmlNodeType_Whitespace
Definition: xmllite.idl:32
@ XmlNodeType_EndElement
Definition: xmllite.idl:33
@ XmlNodeType_ProcessingInstruction
Definition: xmllite.idl:29
@ XmlNodeType_Attribute
Definition: xmllite.idl:26
@ XmlNodeType_CDATA
Definition: xmllite.idl:28
@ XmlNodeType_XmlDeclaration
Definition: xmllite.idl:34
@ _XmlNodeType_Last
Definition: xmllite.idl:35
@ XmlNodeType_Comment
Definition: xmllite.idl:30
@ XmlNodeType_DocumentType
Definition: xmllite.idl:31
@ XmlNodeType_None
Definition: xmllite.idl:24
@ XmlNodeType_Element
Definition: xmllite.idl:25
@ XmlNodeType_Text
Definition: xmllite.idl:27

◆ XmlReaderProperty

Enumerator
XmlReaderProperty_MultiLanguage 
XmlReaderProperty_ConformanceLevel 
XmlReaderProperty_RandomAccess 
XmlReaderProperty_XmlResolver 
XmlReaderProperty_DtdProcessing 
XmlReaderProperty_ReadState 
XmlReaderProperty_MaxElementDepth 
XmlReaderProperty_MaxEntityExpansion 
_XmlReaderProperty_Last 

Definition at line 124 of file xmllite.idl.

◆ XmlReadState

Enumerator
XmlReadState_Initial 
XmlReadState_Interactive 
XmlReadState_Error 
XmlReadState_EndOfFile 
XmlReadState_Closed 

Definition at line 97 of file xmllite.idl.

98{
XmlReadState
Definition: xmllite.idl:98
@ XmlReadState_Closed
Definition: xmllite.idl:103
@ XmlReadState_Error
Definition: xmllite.idl:101
@ XmlReadState_EndOfFile
Definition: xmllite.idl:102
@ XmlReadState_Initial
Definition: xmllite.idl:99
@ XmlReadState_Interactive
Definition: xmllite.idl:100

◆ XmlStandalone

Enumerator
XmlStandalone_Omit 
XmlStandalone_Yes 
XmlStandalone_No 
_XmlStandalone_Last 

Definition at line 237 of file xmllite.idl.

238{
XmlStandalone
Definition: xmllite.idl:238
@ XmlStandalone_No
Definition: xmllite.idl:241
@ XmlStandalone_Omit
Definition: xmllite.idl:239
@ XmlStandalone_Yes
Definition: xmllite.idl:240
@ _XmlStandalone_Last
Definition: xmllite.idl:242

◆ XmlWriterProperty

Enumerator
XmlWriterProperty_MultiLanguage 
XmlWriterProperty_Indent 
XmlWriterProperty_ByteOrderMark 
XmlWriterProperty_OmitXmlDeclaration 
XmlWriterProperty_ConformanceLevel 
_XmlWriterProperty_Last 

Definition at line 245 of file xmllite.idl.

Function Documentation

◆ CreateXmlReader()

STDAPI CreateXmlReader ( REFIID  riid,
void **  ppvObject,
IMalloc *  pMalloc 
)

Definition at line 3616 of file reader.c.

3617{
3619 HRESULT hr;
3620 int i;
3621
3622 TRACE("%s, %p, %p.\n", wine_dbgstr_guid(riid), obj, imalloc);
3623
3624 if (!(reader = m_alloc(imalloc, sizeof(*reader))))
3625 return E_OUTOFMEMORY;
3626
3627 memset(reader, 0, sizeof(*reader));
3628 reader->IXmlReader_iface.lpVtbl = &xmlreader_vtbl;
3629 reader->ref = 1;
3630 reader->state = XmlReadState_Closed;
3631 reader->instate = XmlReadInState_Initial;
3632 reader->resumestate = XmlReadResumeState_Initial;
3633 reader->dtdmode = DtdProcessing_Prohibit;
3634 reader->imalloc = imalloc;
3635 if (imalloc) IMalloc_AddRef(imalloc);
3636 reader->nodetype = XmlNodeType_None;
3637 list_init(&reader->attrs);
3638 list_init(&reader->nsdef);
3639 list_init(&reader->ns);
3640 list_init(&reader->elements);
3641 reader->max_depth = 256;
3642
3643 reader->chunk_read_off = 0;
3644 for (i = 0; i < StringValue_Last; i++)
3645 reader->strvalues[i] = strval_empty;
3646
3647 hr = IXmlReader_QueryInterface(&reader->IXmlReader_iface, riid, obj);
3648 IXmlReader_Release(&reader->IXmlReader_iface);
3649
3650 TRACE("returning iface %p, hr %#lx.\n", *obj, hr);
3651
3652 return hr;
3653}
static void list_init(struct list_entry *head)
Definition: list.h:51
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
HRESULT hr
Definition: delayimp.cpp:582
static const strval strval_empty
Definition: reader.c:219
static const struct IXmlReaderVtbl xmlreader_vtbl
Definition: reader.c:3528
@ StringValue_Last
Definition: reader.c:86
@ XmlReadResumeState_Initial
Definition: reader.c:61
@ XmlReadInState_Initial
Definition: reader.c:46
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
REFIID riid
Definition: atlbase.h:39
static __inline const char * wine_dbgstr_guid(const GUID *id)
Definition: debug.h:181
#define memset(x, y, z)
Definition: compat.h:39
#define TRACE(s)
Definition: solgame.cpp:4
Definition: reader.h:84
static void * m_alloc(IMalloc *imalloc, size_t len)

Referenced by check_writer_state(), d2d_factory_register_effect_from_stream(), get_xml_elements(), parse_desc_xml(), test_attribute_by_name(), test_encoding_detection(), test_endoffile(), test_invalid_output_encoding(), test_isemptyelement(), test_max_element_depth(), test_namespaceuri(), test_prefix(), test_read_attribute(), test_read_cdata(), test_read_charref(), test_read_comment(), test_read_element(), test_read_full(), test_read_pending(), test_read_pi(), test_read_public_dtd(), test_read_system_dtd(), test_read_text(), test_read_xmldeclaration(), test_reader_create(), test_reader_position(), test_reader_properties(), test_reader_state(), test_readerinput(), test_readvaluechunk(), test_string_pointers(), test_WriteAttributes(), test_WriteNode(), and test_WriteNodeShallow().

◆ CreateXmlReaderInputWithEncodingCodePage()

STDAPI CreateXmlReaderInputWithEncodingCodePage ( IUnknown *  stream,
IMalloc *  pMalloc,
UINT  encoding_codepage,
BOOL  hint,
const WCHAR *  base_uri,
IXmlReaderInput **  pInput 
)

Definition at line 3707 of file reader.c.

3709{
3710 TRACE("%p, %p, %u, %d, %s, %p.\n", stream, imalloc, codepage, hint, wine_dbgstr_w(base_uri), input);
3711
3713}
static HRESULT create_reader_input(IUnknown *stream, IMalloc *imalloc, xml_encoding encoding, BOOL hint, const WCHAR *base_uri, IXmlReaderInput **ppInput)
Definition: reader.c:3655
xml_encoding get_encoding_from_codepage(UINT codepage)
Definition: reader.c:160
GLenum GLenum GLenum input
Definition: glext.h:9031
#define wine_dbgstr_w
Definition: kernel32.h:34
Definition: parse.h:23
DWORD hint
Definition: vfdcmd.c:88
int codepage
Definition: win_iconv.c:156

Referenced by test_readerinput().

◆ CreateXmlReaderInputWithEncodingName()

STDAPI CreateXmlReaderInputWithEncodingName ( IUnknown *  stream,
IMalloc *  pMalloc,
LPCWSTR  encoding,
BOOL  hint,
LPCWSTR  base_uri,
IXmlReaderInput **  ppInput 
)

◆ CreateXmlWriter()

STDAPI CreateXmlWriter ( REFIID  riid,
void **  ppvObject,
IMalloc *  pMalloc 
)

Definition at line 2154 of file writer.c.

2155{
2156 xmlwriter *writer;
2157 HRESULT hr;
2158
2159 TRACE("(%s, %p, %p)\n", wine_dbgstr_guid(riid), obj, imalloc);
2160
2161 if (!(writer = m_alloc(imalloc, sizeof(*writer))))
2162 return E_OUTOFMEMORY;
2163 memset(writer, 0, sizeof(*writer));
2164
2165 writer->IXmlWriter_iface.lpVtbl = &xmlwriter_vtbl;
2166 writer->ref = 1;
2167 writer->imalloc = imalloc;
2168 if (imalloc) IMalloc_AddRef(imalloc);
2169 writer->bom = TRUE;
2171 writer->state = XmlWriterState_Initial;
2172 list_init(&writer->elements);
2173
2174 hr = IXmlWriter_QueryInterface(&writer->IXmlWriter_iface, riid, obj);
2175 IXmlWriter_Release(&writer->IXmlWriter_iface);
2176
2177 TRACE("returning iface %p, hr %#lx.\n", *obj, hr);
2178
2179 return hr;
2180}
#define TRUE
Definition: types.h:120
static const struct IXmlWriterVtbl xmlwriter_vtbl
Definition: writer.c:2058
@ XmlWriterState_Initial
Definition: writer.c:57
struct list elements
Definition: writer.c:112
IXmlWriter IXmlWriter_iface
Definition: writer.c:102
LONG ref
Definition: writer.c:103
XmlWriterState state
Definition: writer.c:111
XmlConformanceLevel conformance
Definition: writer.c:110
BOOL bom
Definition: writer.c:108
IMalloc * imalloc
Definition: writer.c:104

Referenced by test_bom(), test_flush(), test_indentation(), test_omitxmldeclaration(), test_WriteAttributes(), test_WriteAttributeString(), test_WriteCData(), test_WriteCharEntity(), test_WriteChars(), test_WriteComment(), test_WriteDocType(), test_WriteElementString(), test_writeenddocument(), test_WriteEndElement(), test_WriteFullEndElement(), test_WriteNode(), test_WriteNodeShallow(), test_WriteProcessingInstruction(), test_writer_create(), test_writer_state(), test_WriteRaw(), test_WriteRawChars(), test_writeroutput(), test_writestartdocument(), test_WriteStartElement(), test_WriteString(), test_WriteSurrogateCharEntity(), and test_WriteWhitespace().

◆ CreateXmlWriterOutputWithEncodingCodePage()

STDAPI CreateXmlWriterOutputWithEncodingCodePage ( IUnknown *  stream,
IMalloc *  pMalloc,
UINT  codepage,
IXmlWriterOutput **  output 
)

Definition at line 2243 of file writer.c.

2245{
2246 xmlwriteroutput *output;
2247 xml_encoding xml_enc;
2248 HRESULT hr;
2249
2250 TRACE("%p %p %u %p\n", stream, imalloc, codepage, out);
2251
2252 if (!stream || !out)
2253 return E_INVALIDARG;
2254
2255 *out = NULL;
2256
2258 if (SUCCEEDED(hr = create_writer_output(stream, imalloc, xml_enc, NULL, &output)))
2259 *out = &output->IXmlWriterOutput_iface;
2260
2261 return hr;
2262}
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
static HRESULT create_writer_output(IUnknown *stream, IMalloc *imalloc, xml_encoding encoding, const WCHAR *encoding_name, xmlwriteroutput **out)
Definition: writer.c:2182
#define SUCCEEDED(hr)
Definition: intsafe.h:50
xml_encoding
Definition: mxwriter.c:49
IXmlWriterOutput IXmlWriterOutput_iface
Definition: writer.c:69
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383

Referenced by test_writeroutput().

◆ CreateXmlWriterOutputWithEncodingName()

STDAPI CreateXmlWriterOutputWithEncodingName ( IUnknown *  stream,
IMalloc *  pMalloc,
LPCWSTR  encoding,
IXmlWriterOutput **  output 
)