Alexandre Julliard : wuapi: Add a typelib resource.

Alexandre Julliard julliard at winehq.org
Thu Dec 9 12:26:23 CST 2010


Module: wine
Branch: master
Commit: 2f0371e84dfbb9e82fcda981b7197742576966a4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2f0371e84dfbb9e82fcda981b7197742576966a4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Dec  9 10:33:25 2010 +0100

wuapi: Add a typelib resource.

---

 .gitignore               |    1 +
 dlls/wuapi/Makefile.in   |    4 ++++
 dlls/wuapi/rsrc.rc       |   22 ++++++++++++++++++++++
 dlls/wuapi/wuapi_tlb.idl |   21 +++++++++++++++++++++
 include/wuapi.idl        |   11 +++++++++++
 5 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index a981f92..88001d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -145,6 +145,7 @@ dlls/urlmon/urlmon_urlmon.h
 dlls/urlmon/urlmon_urlmon_p.c
 dlls/windowscodecs/windowscodecs_wincodec.h
 dlls/windowscodecs/windowscodecs_wincodec_p.c
+dlls/wuapi/wuapi_tlb.tlb
 include/activaut.h
 include/activdbg.h
 include/activscp.h
diff --git a/dlls/wuapi/Makefile.in b/dlls/wuapi/Makefile.in
index 658008a..563f611 100644
--- a/dlls/wuapi/Makefile.in
+++ b/dlls/wuapi/Makefile.in
@@ -11,4 +11,8 @@ C_SRCS = \
 	session.c \
 	updates.c
 
+IDL_TLB_SRCS = wuapi_tlb.idl
+
+RC_SRCS = rsrc.rc
+
 @MAKE_DLL_RULES@
diff --git a/dlls/wuapi/rsrc.rc b/dlls/wuapi/rsrc.rc
new file mode 100644
index 0000000..9ddce3b
--- /dev/null
+++ b/dlls/wuapi/rsrc.rc
@@ -0,0 +1,22 @@
+/*
+ * Resources for wuapi
+ *
+ * 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
+ */
+
+/* @makedep: wuapi_tlb.tlb */
+1 TYPELIB wuapi_tlb.tlb
diff --git a/dlls/wuapi/wuapi_tlb.idl b/dlls/wuapi/wuapi_tlb.idl
new file mode 100644
index 0000000..120e364
--- /dev/null
+++ b/dlls/wuapi/wuapi_tlb.idl
@@ -0,0 +1,21 @@
+/*
+ * Typelib for wuapi
+ *
+ * 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
+ */
+
+#include "wuapi.idl"
diff --git a/include/wuapi.idl b/include/wuapi.idl
index dd5da68..31ae49c 100644
--- a/include/wuapi.idl
+++ b/include/wuapi.idl
@@ -21,6 +21,15 @@ cpp_quote("DEFINE_GUID(CLSID_UpdateSession, 0x4cb43d7f,0x7eee,0x4906,0x86,0x98,0
 
 import "oaidl.idl";
 
+[
+    helpstring("WUAPI 2.0 Type Library"),
+    uuid(b596cc9f-56e5-419e-a622-e01bb457431e),
+    version(2.0)
+]
+library WUApiLib {
+
+importlib("stdole2.tlb");
+
 interface ICategoryCollection;
 interface IStringCollection;
 interface IUpdateCollection;
@@ -1287,3 +1296,5 @@ interface IUpdateInstaller : IDispatch
     HRESULT RebootRequiredBeforeInstallation(
         [out, retval] VARIANT_BOOL *retval);
 }
+
+} /* WUApiLib */




More information about the wine-cvs mailing list