Commit f6b6c7ba authored by Alexandre Julliard's avatar Alexandre Julliard

include: Correctly define the msxml typelib by directly including xmldom.idl and xmldso.idl.

parent f51d6df5
...@@ -252,8 +252,6 @@ include/wine/winedxgi.h ...@@ -252,8 +252,6 @@ include/wine/winedxgi.h
include/winsxs.h include/winsxs.h
include/wtypes.h include/wtypes.h
include/wuapi.h include/wuapi.h
include/xmldom.h
include/xmldso.h
include/xmllite.h include/xmllite.h
libs/wpp/ppl.yy.c libs/wpp/ppl.yy.c
libs/wpp/ppy.tab.c libs/wpp/ppy.tab.c
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "ole2.h" #include "ole2.h"
#include "sddl.h" #include "sddl.h"
#include "xmldom.h"
#include "gameux.h" #include "gameux.h"
#include "gameux_private.h" #include "gameux_private.h"
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "ole2.h" #include "ole2.h"
#include "ocidl.h" #include "ocidl.h"
#include "shellapi.h" #include "shellapi.h"
#include "xmldom.h"
#include "xmldso.h"
#include "initguid.h" #include "initguid.h"
#include "msxml2.h" #include "msxml2.h"
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include "winuser.h" #include "winuser.h"
#include "ole2.h" #include "ole2.h"
#include "msxml.h" #include "msxml.h"
#include "xmldom.h"
#include "msxml2.h" #include "msxml2.h"
/* undef the #define in msxml2 so that we can access the v.2 version /* undef the #define in msxml2 so that we can access the v.2 version
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "winerror.h" #include "winerror.h"
#include "ole2.h" #include "ole2.h"
#include "msxml.h" #include "msxml.h"
#include "xmldom.h"
#include "xmldso.h"
#include "msxml6.h" #include "msxml6.h"
/* undef the #define in msxml2 so that we can access the v.2 version /* undef the #define in msxml2 so that we can access the v.2 version
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "windows.h" #include "windows.h"
#include "ole2.h" #include "ole2.h"
#include "objsafe.h" #include "objsafe.h"
#include "xmldom.h"
#include "msxml2.h" #include "msxml2.h"
#include "msxml2did.h" #include "msxml2did.h"
#include "dispex.h" #include "dispex.h"
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "initguid.h" #include "initguid.h"
#include "windows.h" #include "windows.h"
#include "ole2.h" #include "ole2.h"
#include "xmldom.h"
#include "msxml2.h" #include "msxml2.h"
#include "dispex.h" #include "dispex.h"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "windows.h" #include "windows.h"
#include "ole2.h" #include "ole2.h"
#include "xmldom.h"
#include "msxml2.h" #include "msxml2.h"
#include "ocidl.h" #include "ocidl.h"
......
...@@ -35,8 +35,6 @@ ...@@ -35,8 +35,6 @@
* First include the version 2 headers so that we don't redefine their * First include the version 2 headers so that we don't redefine their
* uuids - they're already in libuuid * uuids - they're already in libuuid
*/ */
#include "xmldom.h"
#include "xmldso.h"
#include "msxml.h" #include "msxml.h"
/* Now we can initialize the rest of the uuids */ /* Now we can initialize the rest of the uuids */
......
...@@ -63,8 +63,6 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0); ...@@ -63,8 +63,6 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
#include "mshtml.h" #include "mshtml.h"
#include "mshtmhst.h" #include "mshtmhst.h"
#include "richole.h" #include "richole.h"
#include "xmldom.h"
#include "xmldso.h"
#include "downloadmgr.h" #include "downloadmgr.h"
#include "objsel.h" #include "objsel.h"
#include "hlink.h" #include "hlink.h"
......
...@@ -101,8 +101,6 @@ PUBLIC_IDL_H_SRCS = \ ...@@ -101,8 +101,6 @@ PUBLIC_IDL_H_SRCS = \
winsxs.idl \ winsxs.idl \
wtypes.idl \ wtypes.idl \
wuapi.idl \ wuapi.idl \
xmldom.idl \
xmldso.idl \
xmllite.idl xmllite.idl
IDL_TLB_SRCS = \ IDL_TLB_SRCS = \
...@@ -549,7 +547,10 @@ SRCDIR_INCLUDES = \ ...@@ -549,7 +547,10 @@ SRCDIR_INCLUDES = \
wtsapi32.h \ wtsapi32.h \
xcmc.h \ xcmc.h \
xinput.h \ xinput.h \
xmldom.h \
xmldom.idl \
xmldomdid.h \ xmldomdid.h \
xmldso.idl \
xmldsodid.h \ xmldsodid.h \
zmouse.h zmouse.h
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
*/ */
#include <msxmldid.h> #include <msxmldid.h>
#include <msxml2did.h>
#include <idispids.h>
#ifndef DO_NO_IMPORTS #ifndef DO_NO_IMPORTS
import "unknwn.idl"; import "unknwn.idl";
...@@ -27,6 +29,19 @@ import "oaidl.idl"; ...@@ -27,6 +29,19 @@ import "oaidl.idl";
#endif #endif
[ [
uuid(d63e0ce2-a0a2-11d0-9c02-00c04fc99c8e),
version(2.0),
helpstring("Microsoft XML, v2.0")
]
library MSXML
{
importlib("stdole2.tlb");
#include <xmldom.idl>
#include <xmldso.idl>
[
local, local,
object, object,
odl, odl,
...@@ -334,3 +349,5 @@ coclass XMLDocument ...@@ -334,3 +349,5 @@ coclass XMLDocument
{ {
[default] interface IXMLDocument; [default] interface IXMLDocument;
} }
} /* Library MSXML */
...@@ -107,7 +107,8 @@ interface ISchemaNotation; ...@@ -107,7 +107,8 @@ interface ISchemaNotation;
cpp_quote("#define DOMDocument DOMDocument2") cpp_quote("#define DOMDocument DOMDocument2")
cpp_quote("#define CLSID_DOMDocument CLSID_DOMDocument2") cpp_quote("#define CLSID_DOMDocument CLSID_DOMDocument2")
cpp_quote("#ifndef __WIDL_XMLDOM_H") cpp_quote("#ifndef __MSXML_DOMNODETYPE_DEFINED")
cpp_quote("#define __MSXML_DOMNODETYPE_DEFINED")
typedef enum tagDOMNodeType typedef enum tagDOMNodeType
{ {
NODE_INVALID = 0, NODE_INVALID = 0,
...@@ -124,7 +125,7 @@ typedef enum tagDOMNodeType ...@@ -124,7 +125,7 @@ typedef enum tagDOMNodeType
NODE_DOCUMENT_FRAGMENT = 11, NODE_DOCUMENT_FRAGMENT = 11,
NODE_NOTATION = 12 NODE_NOTATION = 12
} DOMNodeType; } DOMNodeType;
cpp_quote("#endif /* __WIDL_XMLDOM_H */") cpp_quote("#endif")
typedef enum _SOMITEMTYPE typedef enum _SOMITEMTYPE
{ {
......
...@@ -113,7 +113,8 @@ interface ISchemaNotation; ...@@ -113,7 +113,8 @@ interface ISchemaNotation;
cpp_quote("#define DOMDocument DOMDocument2") cpp_quote("#define DOMDocument DOMDocument2")
cpp_quote("#define CLSID_DOMDocument CLSID_DOMDocument2") cpp_quote("#define CLSID_DOMDocument CLSID_DOMDocument2")
cpp_quote("#ifndef __WIDL_XMLDOM_H") cpp_quote("#ifndef __MSXML_DOMNODETYPE_DEFINED")
cpp_quote("#define __MSXML_DOMNODETYPE_DEFINED")
typedef enum tagDOMNodeType typedef enum tagDOMNodeType
{ {
NODE_INVALID = 0, NODE_INVALID = 0,
...@@ -130,7 +131,7 @@ typedef enum tagDOMNodeType ...@@ -130,7 +131,7 @@ typedef enum tagDOMNodeType
NODE_DOCUMENT_FRAGMENT = 11, NODE_DOCUMENT_FRAGMENT = 11,
NODE_NOTATION = 12 NODE_NOTATION = 12
} DOMNodeType; } DOMNodeType;
cpp_quote("#endif /* __WIDL_XMLDOM_H */") cpp_quote("#endif")
typedef enum _SOMITEMTYPE typedef enum _SOMITEMTYPE
{ {
......
/*
* Copyright 2010 Alexandre Julliard
*
* 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
*/
/* xmldom.idl is included by msxml.idl so it doesn't need a stand-alone header */
#include <msxml.h>
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#include <xmldomdid.h> #include <xmldomdid.h>
#include <idispids.h> #include <idispids.h>
import "ocidl.idl";
interface IXMLDOMImplementation; interface IXMLDOMImplementation;
interface IXMLDOMNode; interface IXMLDOMNode;
interface IXMLDOMDocumentFragment; interface IXMLDOMDocumentFragment;
...@@ -39,8 +37,9 @@ interface IXMLDOMNotation; ...@@ -39,8 +37,9 @@ interface IXMLDOMNotation;
interface IXMLDOMEntity; interface IXMLDOMEntity;
interface IXMLDOMEntityReference; interface IXMLDOMEntityReference;
interface IXMLDOMParseError; interface IXMLDOMParseError;
interface IXTLRuntime;
cpp_quote("#ifndef __MSXML_DOMNODETYPE_DEFINED")
cpp_quote("#define __MSXML_DOMNODETYPE_DEFINED")
typedef enum tagDOMNodeType { typedef enum tagDOMNodeType {
NODE_INVALID, NODE_INVALID,
NODE_ELEMENT, NODE_ELEMENT,
...@@ -56,6 +55,7 @@ typedef enum tagDOMNodeType { ...@@ -56,6 +55,7 @@ typedef enum tagDOMNodeType {
NODE_DOCUMENT_FRAGMENT, NODE_DOCUMENT_FRAGMENT,
NODE_NOTATION NODE_NOTATION
} DOMNodeType; } DOMNodeType;
cpp_quote("#endif")
[ [
local, local,
......
...@@ -16,9 +16,6 @@ ...@@ -16,9 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
import "wtypes.idl";
import "ocidl.idl";
#include <idispids.h> #include <idispids.h>
#include <xmldsodid.h> #include <xmldsodid.h>
......
...@@ -156,6 +156,8 @@ my %private_idl_headers = ( ...@@ -156,6 +156,8 @@ my %private_idl_headers = (
"rstloc.idl" => 1, "rstloc.idl" => 1,
"sesprp.idl" => 1, "sesprp.idl" => 1,
"vmrender.idl" => 1, "vmrender.idl" => 1,
"xmldom.idl" => 1,
"xmldso.idl" => 1,
"wine/wined3d.idl" => 1, "wine/wined3d.idl" => 1,
"wine/winedxgi.idl" => 1, "wine/winedxgi.idl" => 1,
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment