ReactOS  0.4.14-dev-342-gdc047f9
xmllite.idl
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 Nikolay Sivov
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 import "unknwn.idl";
20 import "objidl.idl";
21 import "oaidl.idl";
22 
23 typedef enum XmlNodeType {
36 } XmlNodeType;
37 
38 /* IXmlReader */
39 [
40  local,
41  object,
42  uuid(7279fc81-709d-4095-b63d-69fe4b0d9030),
44 ]
45 interface IXmlReader : IUnknown
46 {
50  HRESULT Read( [out] XmlNodeType *node_type);
51  HRESULT GetNodeType( [out] XmlNodeType *node_type);
55  [in] LPCWSTR namespaceUri);
56  HRESULT MoveToElement(void);
57  HRESULT GetQualifiedName( [out] LPCWSTR *qualifiedName,
58  [out] UINT *qualifiedName_length);
59  HRESULT GetNamespaceUri( [out] LPCWSTR *namespaceUri,
60  [out] UINT *nnamespaceUri_length);
62  [out] UINT *locale_name_length);
63  HRESULT GetPrefix( [out] LPCWSTR *prefix,
64  [out] UINT *prefix_length);
66  [out] UINT *value_length);
68  [in] UINT chunk_size,
69  [in,out] UINT *read);
70  HRESULT GetBaseUri( [out] LPCWSTR *baseUri,
71  [out] UINT *baseUri_length);
72  BOOL IsDefault(void);
73  BOOL IsEmptyElement(void);
74  HRESULT GetLineNumber( [out] UINT *lineNumber);
75  HRESULT GetLinePosition( [out] UINT *linePosition);
76  HRESULT GetAttributeCount( [out] UINT *attributeCount);
78  BOOL IsEOF(void);
79 }
80 
81 /* IXmlResolver */
82 [
83  local,
84  object,
85  uuid(7279fc82-709d-4095-b63d-69fe4b0d9030),
87 ]
89 {
90  HRESULT ResolveUri([in] LPCWSTR base_uri,
91  [in] LPCWSTR public_id,
93  [out] IUnknown **input);
94 }
95 
96 /* IXmlReader state */
97 typedef enum XmlReadState
98 {
104 } XmlReadState;
105 
106 /* conformance levels */
108 {
114 
115 /* DTD processing mode */
116 typedef enum DtdProcessing
117 {
121 } DtdProcessing;
122 
123 /* IXmlReader properties */
124 typedef enum XmlReaderProperty
125 {
136 
137 /* reader error codes */
138 typedef enum XmlError
139 {
140  MX_E_MX = 0xc00cee00,
145  WC_E_WC = 0xc00cee20,
194  NC_E_NC = 0xc00cee60,
205  SC_E_SC = 0xc00cee80,
208  WR_E_WR = 0xc00cef00,
221  XML_E_INVALID_DECIMAL = 0xc00ce01d,
225 } XmlError;
226 
227 /* IXmlReader construction */
228 cpp_quote("STDAPI CreateXmlReader(REFIID riid, void **ppvObject, IMalloc *pMalloc);")
229 
233 cpp_quote(" LPCWSTR base_uri, IXmlReaderInput **ppInput);")
234 
236 {
241 } XmlStandalone;
242 
243 typedef enum XmlWriterProperty
244 {
252 
253 /* IXmlWriter */
254 [
255  local,
256  object,
257  uuid(7279FC88-709D-4095-B63D-69FE4B0D9030),
259 ]
260 interface IXmlWriter : IUnknown
261 {
262  HRESULT SetOutput([in] IUnknown *pOutput);
263  HRESULT GetProperty([in] UINT nProperty, [out] LONG_PTR *ppValue);
264  HRESULT SetProperty([in] UINT nProperty, [in] LONG_PTR pValue);
265  HRESULT WriteAttributes([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes);
266  HRESULT WriteAttributeString([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName,
267  [in] LPCWSTR pwszNamespaceUri, [in] LPCWSTR pwszValue);
268  HRESULT WriteCData([in] LPCWSTR pwszText);
270  HRESULT WriteChars([in] const WCHAR *pwch, [in] UINT cwch);
271  HRESULT WriteComment([in] LPCWSTR pwszComment);
272  HRESULT WriteDocType([in] LPCWSTR pwszName, [in] LPCWSTR pwszPublicId,
273  [in] LPCWSTR pwszSystemId, [in] LPCWSTR pwszSubset);
274  HRESULT WriteElementString([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName,
275  [in] LPCWSTR pwszNamespaceUri, [in] LPCWSTR pwszValue);
278  HRESULT WriteEntityRef([in] LPCWSTR pwszName);
280  HRESULT WriteName([in] LPCWSTR pwszName);
281  HRESULT WriteNmToken([in] LPCWSTR pwszNmToken);
282  HRESULT WriteNode([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes);
283  HRESULT WriteNodeShallow([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes);
284  HRESULT WriteProcessingInstruction([in] LPCWSTR pwszName, [in] LPCWSTR pwszText);
285  HRESULT WriteQualifiedName([in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri);
286  HRESULT WriteRaw([in] LPCWSTR pwszData);
287  HRESULT WriteRawChars([in] const WCHAR *pwch, [in] UINT cwch);
289  HRESULT WriteStartElement([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName,
290  [in] LPCWSTR pwszNamespaceUri);
291  HRESULT WriteString([in] LPCWSTR pwszText);
292  HRESULT WriteSurrogateCharEntity([in] WCHAR wchLow, [in] WCHAR wchHigh);
293  HRESULT WriteWhitespace([in] LPCWSTR pwszWhitespace);
294  HRESULT Flush();
295 }
296 
297 /* IXmlWriter construction */
298 cpp_quote("STDAPI CreateXmlWriter(REFIID riid, void **ppvObject, IMalloc *pMalloc);")
299 
HRESULT GetProperty([in] UINT property, [out] LONG_PTR *value)
HRESULT MoveToNextAttribute(void)
#define STDAPI
Definition: basetyps.h:41
XmlReadState
Definition: xmllite.idl:97
HRESULT MoveToFirstAttribute(void)
static UCHAR ULONG UCHAR ULONG UCHAR * output
Definition: bcrypt.c:29
HRESULT WriteRawChars([in] const WCHAR *pwch, [in] UINT cwch)
HRESULT WriteComment([in] LPCWSTR pwszComment)
HRESULT WriteNode([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes)
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
HRESULT GetQualifiedName([out] LPCWSTR *qualifiedName, [out] UINT *qualifiedName_length)
HRESULT WriteName([in] LPCWSTR pwszName)
HRESULT WriteFullEndElement()
DtdProcessing
Definition: xmllite.idl:116
HRESULT GetNamespaceUri([out] LPCWSTR *namespaceUri, [out] UINT *nnamespaceUri_length)
HRESULT ResolveUri([in] LPCWSTR base_uri, [in] LPCWSTR public_id, [in] LPCWSTR system_id, [out] IUnknown **input)
XmlWriterProperty
Definition: xmllite.idl:243
HRESULT WriteAttributeString([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri, [in] LPCWSTR pwszValue)
XmlStandalone
Definition: xmllite.idl:235
HRESULT SetProperty([in] UINT property, [in] LONG_PTR value)
STDAPI CreateXmlWriterOutputWithEncodingName(IUnknown *stream, IMalloc *pMalloc,") cpp_quote(" LPCWSTR encoding, IXmlWriterOutput **output)
HRESULT WriteRaw([in] LPCWSTR pwszData)
GLuint buffer
Definition: glext.h:5915
HRESULT WriteEndElement()
HRESULT GetLineNumber([out] UINT *lineNumber)
HRESULT WriteAttributes([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes)
XmlNodeType
Definition: xmllite.idl:23
HRESULT WriteElementString([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri, [in] LPCWSTR pwszValue)
HRESULT SetProperty([in] UINT nProperty, [in] LONG_PTR pValue)
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
HRESULT GetDepth([out] UINT *depth)
BOOL IsEOF(void)
HRESULT WriteChars([in] const WCHAR *pwch, [in] UINT cwch)
HRESULT WriteEndDocument()
HRESULT WriteCData([in] LPCWSTR pwszText)
HRESULT GetAttributeCount([out] UINT *attributeCount)
HRESULT GetLinePosition([out] UINT *linePosition)
HRESULT GetProperty([in] UINT nProperty, [out] LONG_PTR *ppValue)
HRESULT GetLocalName([out] LPCWSTR *local_name, [out] UINT *locale_name_length)
unsigned int BOOL
Definition: ntddk_ex.h:94
XmlConformanceLevel
Definition: xmllite.idl:107
int codepage
Definition: win_iconv.c:156
HRESULT WriteString([in] LPCWSTR pwszText)
XmlReaderProperty
Definition: xmllite.idl:124
STDAPI CreateXmlReaderInputWithEncodingName(IUnknown *stream, IMalloc *pMalloc,") cpp_quote(" LPCWSTR encoding, BOOL hint,") cpp_quote(" LPCWSTR base_uri, IXmlReaderInput **ppInput)
HRESULT WriteStartElement([in] LPCWSTR pwszPrefix, [in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri)
HRESULT WriteCharEntity([in] WCHAR wch)
HRESULT Flush()
HRESULT ReadValueChunk([out] WCHAR *buffer, [in] UINT chunk_size, [in, out] UINT *read)
HRESULT WriteSurrogateCharEntity([in] WCHAR wchLow, [in] WCHAR wchHigh)
HRESULT MoveToElement(void)
#define d
Definition: ke_i.h:81
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
XmlError
Definition: xmllite.idl:138
static FILE * out
Definition: regtests2xml.c:44
HRESULT GetNodeType([out] XmlNodeType *node_type)
HRESULT GetBaseUri([out] LPCWSTR *baseUri, [out] UINT *baseUri_length)
STDAPI CreateXmlWriterOutputWithEncodingCodePage(IUnknown *stream, IMalloc *pMalloc,") cpp_quote(" UINT codepage, IXmlWriterOutput **output)
GLint GLint GLsizei GLsizei GLsizei depth
Definition: gl.h:1546
Definition: parse.h:22
HRESULT Read([out] XmlNodeType *node_type)
static LPMALLOC pMalloc
Definition: shellpath.c:104
BOOL IsDefault(void)
ed encoding
Definition: write.c:2839
HRESULT WriteStartDocument([in] XmlStandalone standalone)
HRESULT GetPrefix([out] LPCWSTR *prefix, [out] UINT *prefix_length)
#define local
Definition: zutil.h:30
HRESULT GetValue([out] LPCWSTR *value, [out] UINT *value_length)
DWORD hint
Definition: vfdcmd.c:88
GLenum GLenum GLenum input
Definition: glext.h:9031
#define D(name, bit)
GLuint in
Definition: glext.h:9616
static unsigned char pointer_default
Definition: parser.tab.c:114
HRESULT MoveToAttributeByName([in] LPCWSTR local_name, [in] LPCWSTR namespaceUri)
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
unsigned int UINT
Definition: ndis.h:50
HRESULT WriteDocType([in] LPCWSTR pwszName, [in] LPCWSTR pwszPublicId, [in] LPCWSTR pwszSystemId, [in] LPCWSTR pwszSubset)
HRESULT WriteNodeShallow([in] IXmlReader *pReader, [in] BOOL fWriteDefaultAttributes)
HRESULT SetOutput([in] IUnknown *pOutput)
HRESULT WriteEntityRef([in] LPCWSTR pwszName)
BOOL IsEmptyElement(void)
HRESULT WriteQualifiedName([in] LPCWSTR pwszLocalName, [in] LPCWSTR pwszNamespaceUri)
HRESULT WriteNmToken([in] LPCWSTR pwszNmToken)
static BSTR local_name(call_frame_t *frame, int ref)
Definition: engine.c:187
HRESULT SetInput([in] IUnknown *input)
void * object
Definition: jmemsys.h:48
__u8 system_id[8]
Definition: mkdosfs.c:359
_CRTIMP int __cdecl read(_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void *_DstBuf, _In_ unsigned int _MaxCharCount)
HRESULT WriteProcessingInstruction([in] LPCWSTR pwszName, [in] LPCWSTR pwszText)
HRESULT WriteWhitespace([in] LPCWSTR pwszWhitespace)