ReactOS 0.4.15-dev-5667-ged97270
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 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 300 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 235 of file xmllite.idl.

236{
XmlStandalone
Definition: xmllite.idl:236
@ XmlStandalone_No
Definition: xmllite.idl:239
@ XmlStandalone_Omit
Definition: xmllite.idl:237
@ XmlStandalone_Yes
Definition: xmllite.idl:238
@ _XmlStandalone_Last
Definition: xmllite.idl:240

◆ XmlWriterProperty

Enumerator
XmlWriterProperty_MultiLanguage 
XmlWriterProperty_Indent 
XmlWriterProperty_ByteOrderMark 
XmlWriterProperty_OmitXmlDeclaration 
XmlWriterProperty_ConformanceLevel 
_XmlWriterProperty_Last 

Definition at line 243 of file xmllite.idl.

Function Documentation

◆ CreateXmlReader()

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

Definition at line 3653 of file reader.c.

3654{
3656 HRESULT hr;
3657 int i;
3658
3659 TRACE("(%s, %p, %p)\n", wine_dbgstr_guid(riid), obj, imalloc);
3660
3661 if (imalloc)
3662 reader = IMalloc_Alloc(imalloc, sizeof(*reader));
3663 else
3664 reader = heap_alloc(sizeof(*reader));
3665 if (!reader)
3666 return E_OUTOFMEMORY;
3667
3668 memset(reader, 0, sizeof(*reader));
3669 reader->IXmlReader_iface.lpVtbl = &xmlreader_vtbl;
3670 reader->ref = 1;
3671 reader->state = XmlReadState_Closed;
3672 reader->instate = XmlReadInState_Initial;
3673 reader->resumestate = XmlReadResumeState_Initial;
3674 reader->dtdmode = DtdProcessing_Prohibit;
3675 reader->imalloc = imalloc;
3676 if (imalloc) IMalloc_AddRef(imalloc);
3677 reader->nodetype = XmlNodeType_None;
3678 list_init(&reader->attrs);
3679 list_init(&reader->nsdef);
3680 list_init(&reader->ns);
3681 list_init(&reader->elements);
3682 reader->max_depth = 256;
3683
3684 reader->chunk_read_off = 0;
3685 for (i = 0; i < StringValue_Last; i++)
3686 reader->strvalues[i] = strval_empty;
3687
3688 hr = IXmlReader_QueryInterface(&reader->IXmlReader_iface, riid, obj);
3689 IXmlReader_Release(&reader->IXmlReader_iface);
3690
3691 TRACE("returning iface %p, hr %#x\n", *obj, hr);
3692
3693 return hr;
3694}
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
static void list_init(struct list_entry *head)
Definition: list.h:51
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
static const strval strval_empty
Definition: reader.c:229
static const struct IXmlReaderVtbl xmlreader_vtbl
Definition: reader.c:3563
@ 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:197
#define memset(x, y, z)
Definition: compat.h:39
HRESULT hr
Definition: shlfolder.c:183
#define TRACE(s)
Definition: solgame.cpp:4
Definition: reader.h:84

Referenced by test_attribute_by_name(), test_encoding_detection(), test_endoffile(), 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(), and test_string_pointers().

◆ CreateXmlReaderInputWithEncodingName()

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

Definition at line 3696 of file reader.c.

3702{
3703 xmlreaderinput *readerinput;
3704 HRESULT hr;
3705
3706 TRACE("%p %p %s %d %s %p\n", stream, imalloc, wine_dbgstr_w(encoding),
3707 hint, wine_dbgstr_w(base_uri), ppInput);
3708
3709 if (!stream || !ppInput) return E_INVALIDARG;
3710
3711 if (imalloc)
3712 readerinput = IMalloc_Alloc(imalloc, sizeof(*readerinput));
3713 else
3714 readerinput = heap_alloc(sizeof(*readerinput));
3715 if(!readerinput) return E_OUTOFMEMORY;
3716
3717 readerinput->IXmlReaderInput_iface.lpVtbl = &xmlreaderinputvtbl;
3718 readerinput->ref = 1;
3719 readerinput->imalloc = imalloc;
3720 readerinput->stream = NULL;
3721 if (imalloc) IMalloc_AddRef(imalloc);
3722 readerinput->encoding = parse_encoding_name(encoding, -1);
3723 readerinput->hint = hint;
3724 readerinput->baseuri = readerinput_strdupW(readerinput, base_uri);
3725 readerinput->pending = 0;
3726
3727 hr = alloc_input_buffer(readerinput);
3728 if (hr != S_OK)
3729 {
3730 readerinput_free(readerinput, readerinput->baseuri);
3731 readerinput_free(readerinput, readerinput);
3732 if (imalloc) IMalloc_Release(imalloc);
3733 return hr;
3734 }
3735 IUnknown_QueryInterface(stream, &IID_IUnknown, (void**)&readerinput->input);
3736
3737 *ppInput = &readerinput->IXmlReaderInput_iface;
3738
3739 TRACE("returning iface %p\n", *ppInput);
3740
3741 return S_OK;
3742}
const GUID IID_IUnknown
#define E_INVALIDARG
Definition: ddrawi.h:101
#define NULL
Definition: types.h:112
static HRESULT alloc_input_buffer(xmlreaderinput *input)
Definition: reader.c:776
static const struct IUnknownVtbl xmlreaderinputvtbl
Definition: reader.c:209
static void readerinput_free(xmlreaderinput *input, void *mem)
Definition: reader.c:380
static WCHAR * readerinput_strdupW(xmlreaderinput *input, const WCHAR *str)
Definition: reader.c:385
xml_encoding parse_encoding_name(const WCHAR *name, int len)
Definition: reader.c:747
#define S_OK
Definition: intsafe.h:52
#define wine_dbgstr_w
Definition: kernel32.h:34
Definition: parse.h:23
ISequentialStream * stream
Definition: reader.c:204
WCHAR * baseuri
Definition: reader.c:200
IUnknown * input
Definition: reader.c:196
xml_encoding encoding
Definition: reader.c:198
IXmlReaderInput IXmlReaderInput_iface
Definition: reader.c:193
unsigned int pending
Definition: reader.c:206
IMalloc * imalloc
Definition: reader.c:197
DWORD hint
Definition: vfdcmd.c:88
static char * encoding
Definition: xmllint.c:155

Referenced by test_readerinput(), and xmlreader_SetInput().

◆ CreateXmlWriter()

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

Definition at line 1897 of file writer.c.

1898{
1899 xmlwriter *writer;
1900 HRESULT hr;
1901
1902 TRACE("(%s, %p, %p)\n", wine_dbgstr_guid(riid), obj, imalloc);
1903
1904 if (imalloc)
1905 writer = IMalloc_Alloc(imalloc, sizeof(*writer));
1906 else
1907 writer = heap_alloc(sizeof(*writer));
1908 if (!writer)
1909 return E_OUTOFMEMORY;
1910
1911 memset(writer, 0, sizeof(*writer));
1912
1913 writer->IXmlWriter_iface.lpVtbl = &xmlwriter_vtbl;
1914 writer->ref = 1;
1915 writer->imalloc = imalloc;
1916 if (imalloc) IMalloc_AddRef(imalloc);
1917 writer->bom = TRUE;
1919 writer->state = XmlWriterState_Initial;
1920 list_init(&writer->elements);
1921
1922 hr = IXmlWriter_QueryInterface(&writer->IXmlWriter_iface, riid, obj);
1923 IXmlWriter_Release(&writer->IXmlWriter_iface);
1924
1925 TRACE("returning iface %p, hr %#x\n", *obj, hr);
1926
1927 return hr;
1928}
#define TRUE
Definition: types.h:120
static const struct IXmlWriterVtbl xmlwriter_vtbl
Definition: writer.c:1801
@ XmlWriterState_Initial
Definition: writer.c:61
struct list elements
Definition: writer.c:116
IXmlWriter IXmlWriter_iface
Definition: writer.c:106
LONG ref
Definition: writer.c:107
XmlWriterState state
Definition: writer.c:115
XmlConformanceLevel conformance
Definition: writer.c:114
BOOL bom
Definition: writer.c:112
IMalloc * imalloc
Definition: writer.c:108

Referenced by test_bom(), test_flush(), test_indentation(), test_omitxmldeclaration(), test_WriteAttributeString(), test_WriteCData(), test_WriteCharEntity(), test_WriteComment(), test_WriteDocType(), test_WriteElementString(), test_writeenddocument(), test_WriteEndElement(), test_WriteFullEndElement(), test_writer_create(), test_writer_state(), test_WriteRaw(), test_writeroutput(), test_writestartdocument(), test_WriteStartElement(), and test_WriteString().

◆ CreateXmlWriterOutputWithEncodingCodePage()

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

Definition at line 1997 of file writer.c.

1999{
2000 xmlwriteroutput *output;
2001 xml_encoding xml_enc;
2002 HRESULT hr;
2003
2004 TRACE("%p %p %u %p\n", stream, imalloc, codepage, out);
2005
2006 if (!stream || !out)
2007 return E_INVALIDARG;
2008
2009 *out = NULL;
2010
2012 if (SUCCEEDED(hr = create_writer_output(stream, imalloc, xml_enc, NULL, &output)))
2013 *out = &output->IXmlWriterOutput_iface;
2014
2015 return hr;
2016}
xml_encoding get_encoding_from_codepage(UINT codepage)
Definition: reader.c:170
static HRESULT create_writer_output(IUnknown *stream, IMalloc *imalloc, xml_encoding encoding, const WCHAR *encoding_name, xmlwriteroutput **out)
Definition: writer.c:1930
#define SUCCEEDED(hr)
Definition: intsafe.h:50
xml_encoding
Definition: mxwriter.c:54
static FILE * out
Definition: regtests2xml.c:44
IXmlWriterOutput IXmlWriterOutput_iface
Definition: writer.c:73
int codepage
Definition: win_iconv.c:156

Referenced by test_writeroutput().

◆ CreateXmlWriterOutputWithEncodingName()

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