[PATCH 1/2] bits: Renamed bits_main.c to qmgr_main.c and updated comments
Roy Shea
roy at cs.hmc.edu
Wed Dec 5 19:23:41 CST 2007
Windows places BITS functionality (other than proxying) in qmgr.dll. Renaming
bits_main.c to qmgr_main.c better conforms to this example.
---
dlls/qmgr/Makefile.in | 2 +-
dlls/qmgr/bits_main.c | 49 -----------------------------------------------
dlls/qmgr/qmgr_main.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 52 insertions(+), 50 deletions(-)
delete mode 100644 dlls/qmgr/bits_main.c
create mode 100644 dlls/qmgr/qmgr_main.c
diff --git a/dlls/qmgr/Makefile.in b/dlls/qmgr/Makefile.in
index 24dc03b..5ac07d3 100644
--- a/dlls/qmgr/Makefile.in
+++ b/dlls/qmgr/Makefile.in
@@ -7,7 +7,7 @@ IMPORTS = kernel32
EXTRALIBS =
C_SRCS = \
- bits_main.c
+ qmgr_main.c
@MAKE_DLL_RULES@
diff --git a/dlls/qmgr/bits_main.c b/dlls/qmgr/bits_main.c
deleted file mode 100644
index 76321ca..0000000
--- a/dlls/qmgr/bits_main.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Implementation of qmgr.dll
- *
- * Background Intelligent Transfer Service (BITS) interface. Dll is named
- * qmgr for backwards compatibility with early versions of BITS.
- *
- * 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 <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wine/debug.h"
-#include "objbase.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(bits);
-
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
-{
- TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
-
- switch (fdwReason)
- {
- case DLL_WINE_PREATTACH:
- return FALSE; /* prefer native version */
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls(hinstDLL);
- break;
- case DLL_PROCESS_DETACH:
- break;
- }
-
- return TRUE;
-}
diff --git a/dlls/qmgr/qmgr_main.c b/dlls/qmgr/qmgr_main.c
new file mode 100644
index 0000000..2331591
--- /dev/null
+++ b/dlls/qmgr/qmgr_main.c
@@ -0,0 +1,51 @@
+/*
+ * Main DLL interface to Queue Manager (BITS)
+ *
+ * Background Intelligent Transfer Service (BITS) interface. Dll is named
+ * qmgr for backwards compatibility with early versions of BITS.
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
+
+/* Entry point for DLL */
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+ TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+
+ switch (fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ break;
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+
+ return TRUE;
+}
+
--
1.5.3.1
More information about the wine-patches
mailing list