[PATCH 2/2] qmgr: Stub functions for queue manager interface.

Roy Shea roy at cs.hmc.edu
Thu Dec 13 12:27:27 CST 2007


---
 dlls/qmgr/Makefile.in |    1 +
 dlls/qmgr/qmgr.c      |  103 +++++++++++++++++++++++++++++++++++++++++++++++++
 dlls/qmgr/qmgr.h      |   38 ++++++++++++++++++
 3 files changed, 142 insertions(+), 0 deletions(-)
 create mode 100644 dlls/qmgr/qmgr.c
 create mode 100644 dlls/qmgr/qmgr.h

diff --git a/dlls/qmgr/Makefile.in b/dlls/qmgr/Makefile.in
index d01f2b8..978d1a5 100644
--- a/dlls/qmgr/Makefile.in
+++ b/dlls/qmgr/Makefile.in
@@ -7,6 +7,7 @@ IMPORTS   = kernel32
 EXTRALIBS =
 
 C_SRCS = \
+	qmgr.c \
 	qmgr_main.c
 
 IDL_I_SRCS = qmgr_local.idl
diff --git a/dlls/qmgr/qmgr.c b/dlls/qmgr/qmgr.c
new file mode 100644
index 0000000..9560197
--- /dev/null
+++ b/dlls/qmgr/qmgr.c
@@ -0,0 +1,103 @@
+/*
+ * Queue Manager (BITS) core functions
+ *
+ * Copyright 2007 Google (Roy Shea)
+ *
+ * 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 "qmgr.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
+
+/* Add a reference to the iface pointer */
+static ULONG WINAPI BITS_IBackgroundCopyManager_AddRef(
+        IBackgroundCopyManager* iface)
+{
+    FIXME("Not implemented\n");
+    return E_NOTIMPL;
+}
+
+/* Attempt to provide a new interface to interact with iface */
+static HRESULT WINAPI BITS_IBackgroundCopyManager_QueryInterface(
+        IBackgroundCopyManager* iface,
+        REFIID riid,
+        LPVOID *ppvObject)
+{
+    FIXME("Not implemented\n");
+    return E_NOTIMPL;
+}
+
+/* Release an interface to iface */
+static ULONG WINAPI BITS_IBackgroundCopyManager_Release(
+        IBackgroundCopyManager* iface)
+{
+    FIXME("Not implemented\n");
+    return E_NOTIMPL;
+}
+
+/*** IBackgroundCopyManager interface methods ***/
+
+static HRESULT WINAPI BITS_IBackgroundCopyManager_CreateJob(
+        IBackgroundCopyManager* iface,
+        LPCWSTR DisplayName,
+        BG_JOB_TYPE Type,
+        GUID *pJobId,
+        IBackgroundCopyJob **ppJob)
+{
+    FIXME("Not implemented\n");
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI BITS_IBackgroundCopyManager_GetJob(
+        IBackgroundCopyManager* iface,
+        REFGUID jobID,
+        IBackgroundCopyJob **ppJob)
+{
+    FIXME("Not implemented\n");
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI BITS_IBackgroundCopyManager_EnumJobs(
+        IBackgroundCopyManager* iface,
+        DWORD dwFlags,
+        IEnumBackgroundCopyJobs **ppEnum)
+{
+    FIXME("Not implemented\n");
+    return E_NOTIMPL;
+}
+
+static HRESULT WINAPI BITS_IBackgroundCopyManager_GetErrorDescription(
+        IBackgroundCopyManager* iface,
+        HRESULT hResult,
+        DWORD LanguageId,
+        LPWSTR *pErrorDescription)
+{
+    FIXME("Not implemented\n");
+    return E_NOTIMPL;
+}
+
+
+const IBackgroundCopyManagerVtbl BITS_IBackgroundCopyManager_Vtbl =
+{
+    BITS_IBackgroundCopyManager_QueryInterface,
+    BITS_IBackgroundCopyManager_AddRef,
+    BITS_IBackgroundCopyManager_Release,
+    BITS_IBackgroundCopyManager_CreateJob,
+    BITS_IBackgroundCopyManager_GetJob,
+    BITS_IBackgroundCopyManager_EnumJobs,
+    BITS_IBackgroundCopyManager_GetErrorDescription
+};
diff --git a/dlls/qmgr/qmgr.h b/dlls/qmgr/qmgr.h
new file mode 100644
index 0000000..cbf9e1b
--- /dev/null
+++ b/dlls/qmgr/qmgr.h
@@ -0,0 +1,38 @@
+/*
+ * Queue Manager definitions
+ *
+ * Copyright 2007 Google (Roy Shea)
+ *
+ * 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
+ */
+
+#ifndef __QMGR_H__
+#define __QMGR_H__
+
+#include "windef.h"
+#include "objbase.h"
+#include "bits.h"
+
+#define ICOM_THIS_MULTI(impl,field,iface) \
+    impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
+
+/* Background copy manager vtbl and related data */
+typedef struct
+{
+    const IBackgroundCopyManagerVtbl *lpVtbl;
+    LONG ref;
+} BackgroundCopyManagerImpl;
+
+#endif /* __QMGR_H__ */
-- 
1.5.3.1




More information about the wine-patches mailing list