[PATCH 3/5] Add IXmlReader interface definition
Nikolay Sivov
bunglehead at gmail.com
Mon Jan 18 14:43:11 CST 2010
---
.gitignore | 1 +
include/Makefile.in | 3 +-
include/xmllite.idl | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 89 insertions(+), 1 deletions(-)
create mode 100644 include/xmllite.idl
diff --git a/.gitignore b/.gitignore
index 7dd1f9d..f2a0bd8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -212,6 +212,7 @@ include/wtypes.h
include/wuapi.h
include/xmldom.h
include/xmldso.h
+include/xmllite.h
libs/wpp/ppl.yy.c
libs/wpp/ppy.tab.c
libs/wpp/ppy.tab.h
diff --git a/include/Makefile.in b/include/Makefile.in
index f957a7b..0c01cfd 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -96,7 +96,8 @@ PUBLIC_IDL_H_SRCS = \
wtypes.idl \
wuapi.idl \
xmldom.idl \
- xmldso.idl
+ xmldso.idl \
+ xmllite.idl
IDL_TLB_SRCS = \
stdole2.idl
diff --git a/include/xmllite.idl b/include/xmllite.idl
new file mode 100644
index 0000000..3e72bb2
--- /dev/null
+++ b/include/xmllite.idl
@@ -0,0 +1,86 @@
+/*
+ * Copyright (C) 2010 Nikolay Sivov
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+import "unknwn.idl";
+import "objidl.idl";
+import "oaidl.idl";
+import "ocidl.idl";
+
+typedef 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
+} XmlNodeType;
+
+/* IXmlReader */
+[
+ local,
+ object,
+ uuid(7279fc81-709d-4095-b63d-69fe4b0d9030),
+ pointer_default(unique)
+]
+interface IXmlReader : IUnknown
+{
+ HRESULT SetInput( [in] IUnknown *input);
+ HRESULT GetProperty( [in] UINT property, [out] LONG_PTR *value);
+ HRESULT SetProperty( [in] UINT property, [in] LONG_PTR value);
+ HRESULT Read( [out] XmlNodeType *node_type);
+ HRESULT GetNodeType( [out] XmlNodeType *node_type);
+ HRESULT MoveToFirstAttribute(void);
+ HRESULT MoveToNextAttribute(void);
+ HRESULT MoveToAttributeByName( [in] LPCWSTR local_name,
+ [in] LPCWSTR namespaceUri);
+ HRESULT MoveToElement(void);
+ HRESULT GetQualifiedName( [out] LPCWSTR *qualifiedName,
+ [out] UINT *qualifiedName_length);
+ HRESULT GetNamespaceUri( [out] LPCWSTR *namespaceUri,
+ [out] UINT *nnamespaceUri_length);
+ HRESULT GetLocalName( [out] LPCWSTR *local_name,
+ [out] UINT *locale_name_length);
+ HRESULT GetPrefix( [out] LPCWSTR *prefix,
+ [out] UINT *prefix_length);
+ HRESULT GetValue( [out] LPCWSTR *value,
+ [out] UINT *value_length);
+ HRESULT ReadValueChunk( [out] WCHAR *buffer,
+ [in] UINT chunk_size,
+ [in,out] UINT *read);
+ HRESULT GetBaseUri( [out] LPCWSTR *baseUri,
+ [out] UINT *baseUri_length);
+ BOOL IsDefault(void);
+ BOOL IsEmptyElement(void);
+ HRESULT GetLineNumber( [out] UINT *lineNumber);
+ HRESULT GetLinePosition( [out] UINT *linePosition);
+ HRESULT GetAttributeCount( [out] UINT *attributeCount);
+ HRESULT GetDepth( [out] UINT *depth);
+ BOOL IsEOF(void);
+}
+
+/* IXmlReader construction */
+cpp_quote("STDAPI CreateXmlReader(REFIID riid, void **ppvObject, IMalloc *pMalloc);")
+
+
+
--
1.5.6.5
--=-+7YEimhKCrq/uZMnbKQc--
More information about the wine-patches
mailing list