Module: wine Branch: master Commit: 2b0255f6d8aacff0b2b68028508a5da041b78dd0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b0255f6d8aacff0b2b6802850...
Author: Roy Shea roy@cs.hmc.edu Date: Mon Oct 8 10:38:06 2007 -0700
qmgr: Skeleton implementation of Background Intelligent Transfer Service (BITS).
---
Makefile.in | 2 ++ configure | 3 +++ configure.ac | 1 + dlls/Makefile.in | 1 + dlls/qmgr/Makefile.in | 14 ++++++++++++++ dlls/qmgr/bits_main.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ dlls/qmgr/qmgr.spec | 2 ++ 7 files changed, 72 insertions(+), 0 deletions(-)
diff --git a/Makefile.in b/Makefile.in index a977a55..3ff8abb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -347,6 +347,7 @@ ALL_MAKEFILES = \ dlls/psapi/tests/Makefile \ dlls/pstorec/Makefile \ dlls/qcap/Makefile \ + dlls/qmgr/Makefile \ dlls/quartz/Makefile \ dlls/quartz/tests/Makefile \ dlls/query/Makefile \ @@ -717,6 +718,7 @@ dlls/psapi/Makefile: dlls/psapi/Makefile.in dlls/Makedll.rules dlls/psapi/tests/Makefile: dlls/psapi/tests/Makefile.in dlls/Maketest.rules dlls/pstorec/Makefile: dlls/pstorec/Makefile.in dlls/Makedll.rules dlls/qcap/Makefile: dlls/qcap/Makefile.in dlls/Makedll.rules +dlls/qmgr/Makefile: dlls/qmgr/Makefile.in dlls/Makedll.rules dlls/quartz/Makefile: dlls/quartz/Makefile.in dlls/Makedll.rules dlls/quartz/tests/Makefile: dlls/quartz/tests/Makefile.in dlls/Maketest.rules dlls/query/Makefile: dlls/query/Makefile.in dlls/Makedll.rules diff --git a/configure b/configure index e9a92da..566d139 100755 --- a/configure +++ b/configure @@ -20650,6 +20650,8 @@ ac_config_files="$ac_config_files dlls/pstorec/Makefile"
ac_config_files="$ac_config_files dlls/qcap/Makefile"
+ac_config_files="$ac_config_files dlls/qmgr/Makefile" + ac_config_files="$ac_config_files dlls/quartz/Makefile"
ac_config_files="$ac_config_files dlls/quartz/tests/Makefile" @@ -21737,6 +21739,7 @@ do "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;; "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;; "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; + "dlls/qmgr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qmgr/Makefile" ;; "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;; "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;; diff --git a/configure.ac b/configure.ac index 34c6fca..6bb3faa 100644 --- a/configure.ac +++ b/configure.ac @@ -1745,6 +1745,7 @@ AC_CONFIG_FILES([dlls/psapi/Makefile]) AC_CONFIG_FILES([dlls/psapi/tests/Makefile]) AC_CONFIG_FILES([dlls/pstorec/Makefile]) AC_CONFIG_FILES([dlls/qcap/Makefile]) +AC_CONFIG_FILES([dlls/qmgr/Makefile]) AC_CONFIG_FILES([dlls/quartz/Makefile]) AC_CONFIG_FILES([dlls/quartz/tests/Makefile]) AC_CONFIG_FILES([dlls/query/Makefile]) diff --git a/dlls/Makefile.in b/dlls/Makefile.in index 2053a1f..4871eba 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -157,6 +157,7 @@ BASEDIRS = \ psapi \ pstorec \ qcap \ + qmgr \ quartz \ query \ rasapi32 \ diff --git a/dlls/qmgr/Makefile.in b/dlls/qmgr/Makefile.in new file mode 100644 index 0000000..24dc03b --- /dev/null +++ b/dlls/qmgr/Makefile.in @@ -0,0 +1,14 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = qmgr.dll +IMPORTS = kernel32 +EXTRALIBS = + +C_SRCS = \ + bits_main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/qmgr/bits_main.c b/dlls/qmgr/bits_main.c new file mode 100644 index 0000000..76321ca --- /dev/null +++ b/dlls/qmgr/bits_main.c @@ -0,0 +1,49 @@ +/* + * 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.spec b/dlls/qmgr/qmgr.spec new file mode 100644 index 0000000..1a63b32 --- /dev/null +++ b/dlls/qmgr/qmgr.spec @@ -0,0 +1,2 @@ +@ stub DllRegisterServer +@ stub DllUnregisterServer