Module: wine Branch: master Commit: 2de77982a94f8946b6bc26402c3d33551e9f458b URL: http://source.winehq.org/git/wine.git/?a=commit;h=2de77982a94f8946b6bc26402c...
Author: Austin English austinenglish@gmail.com Date: Wed Jan 28 10:51:51 2009 -0600
traffic: Add stub dll.
---
configure | 9 ++++++++ configure.ac | 1 + dlls/traffic/Makefile.in | 13 ++++++++++++ dlls/traffic/traffic.spec | 21 ++++++++++++++++++++ dlls/traffic/traffic_main.c | 44 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 88 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index 162775d..9add58a 100755 --- a/configure +++ b/configure @@ -26550,6 +26550,14 @@ dlls/tapi32/Makefile: dlls/tapi32/Makefile.in dlls/Makedll.rules" ac_config_files="$ac_config_files dlls/tapi32/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \ + dlls/traffic/Makefile" +test "x$enable_traffic" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ + traffic" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/traffic/Makefile: dlls/traffic/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/traffic/Makefile" + +ALL_MAKEFILES="$ALL_MAKEFILES \ dlls/twain_32/Makefile" test "x$enable_twain_32" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ twain_32" @@ -28603,6 +28611,7 @@ do "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;; "dlls/sxs/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sxs/Makefile" ;; "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; + "dlls/traffic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/traffic/Makefile" ;; "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;; "dlls/twain_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/tests/Makefile" ;; "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;; diff --git a/configure.ac b/configure.ac index 06e3678..682d1da 100644 --- a/configure.ac +++ b/configure.ac @@ -2111,6 +2111,7 @@ WINE_CONFIG_MAKEFILE([dlls/strmiids/Makefile],[dlls/Makeimplib.rules],[dlls],[AL WINE_CONFIG_MAKEFILE([dlls/svrapi/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/sxs/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/tapi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) +WINE_CONFIG_MAKEFILE([dlls/traffic/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/twain_32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/twain_32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) WINE_CONFIG_MAKEFILE([dlls/unicows/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) diff --git a/dlls/traffic/Makefile.in b/dlls/traffic/Makefile.in new file mode 100644 index 0000000..9af37e2 --- /dev/null +++ b/dlls/traffic/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = traffic.dll +IMPORTS = kernel32 + +C_SRCS = \ + traffic_main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/traffic/traffic.spec b/dlls/traffic/traffic.spec new file mode 100644 index 0000000..eed26e8 --- /dev/null +++ b/dlls/traffic/traffic.spec @@ -0,0 +1,21 @@ +@ stub TcAddClassMap +@ stub TcAddFilter +@ stub TcAddFlow +@ stub TcCloseInterface +@ stub TcDeleteFilter +@ stub TcDeleteFlow +@ stub TcDeregisterClient +@ stub TcEnumerateFlows +@ stub TcEnumerateInterfaces +@ stub TcGetFlowNameA +@ stub TcGetFlowNameW +@ stub TcModifyFlow +@ stub TcOpenInterfaceA +@ stub TcOpenInterfaceW +@ stub TcQueryFlowA +@ stub TcQueryFlowW +@ stub TcQueryInterface +@ stub TcRegisterClient +@ stub TcSetFlowA +@ stub TcSetFlowW +@ stub TcSetInterface diff --git a/dlls/traffic/traffic_main.c b/dlls/traffic/traffic_main.c new file mode 100644 index 0000000..421be6c --- /dev/null +++ b/dlls/traffic/traffic_main.c @@ -0,0 +1,44 @@ +/* + * QoS traffic control implementation + * + * Copyright 2009 Austin English + * + * 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(traffic); + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(0x%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; + default: + break; + } + + return TRUE; +}