Module: wine Branch: master Commit: 8518ee38e3331ff8655a23746907cd4774495cbc URL: http://source.winehq.org/git/wine.git/?a=commit;h=8518ee38e3331ff8655a237469...
Author: Huw Davies huw@codeweavers.com Date: Mon Nov 13 15:39:42 2006 +0000
msxml3: Initialize the uuids that aren't in libuuid.
---
dlls/msxml3/Makefile.in | 3 +- dlls/msxml3/uuid.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletions(-)
diff --git a/dlls/msxml3/Makefile.in b/dlls/msxml3/Makefile.in index 08ede48..5b9261f 100644 --- a/dlls/msxml3/Makefile.in +++ b/dlls/msxml3/Makefile.in @@ -20,7 +20,8 @@ C_SRCS = \ nodemap.c \ parseerror.c \ regsvr.c \ - text.c + text.c \ + uuid.c
RC_SRCS = version.rc
diff --git a/dlls/msxml3/uuid.c b/dlls/msxml3/uuid.c new file mode 100644 index 0000000..a3c7965 --- /dev/null +++ b/dlls/msxml3/uuid.c @@ -0,0 +1,58 @@ +/* + * MSXML2 uuids + * + * Copyright 2006 Huw Davies + * + * 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 + */ + +/* + * We can't use the autogenerated _i.c file from msxml2.idl as that + * will contain some of the (version 2) uuids defined in libuuid. + * Therefore we roll our own. + */ + +#include <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "winuser.h" +#include "ole2.h" + +/* + * First include the version 2 headers so that we don't redefine their + * uuids - they're already in libuuid + */ +#include "xmldom.h" +#include "xmldso.h" +#include "msxml.h" + +/* Now we can initialize the rest of the uuids */ +#include "initguid.h" +#include "msxml2.h" + +/* + * Note that because of a #define in msxml2.h, we end up initializing + * CLSID_DOMDocument2 to be the v.3 version independent DOMDocument + * class {f6d90f11-9c73-11d3-b32e-00c04f990bb4}. The other version + * independent CLSIDs all have slightly different names: + * + * v.2.x v.3.0 + * + * DOMFreeThreadedDocument FreeThreadedDOMDocument + * XMLHTTPRequest XMLHTTP + * XMLDSOControl DSOControl + * + */