traffic: add stub dll
Austin English
austinenglish at gmail.com
Wed Jan 28 10:55:50 CST 2009
Needed by Nortel IP Softphone to install. See bug 17169.
--
-Austin
-------------- next part --------------
From 256069d51fee8c55c4123f4e4a2d39ce5a506307 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Wed, 28 Jan 2009 10:51:51 -0600
Subject: [PATCH] traffic: add stub dll
---
configure.ac | 1 +
dlls/traffic/Makefile.in | 13 ++++++++++++
dlls/traffic/traffic.spec | 21 ++++++++++++++++++++
dlls/traffic/traffic_main.c | 44 +++++++++++++++++++++++++++++++++++++++++++
4 files changed, 79 insertions(+), 0 deletions(-)
create mode 100644 dlls/traffic/Makefile.in
create mode 100644 dlls/traffic/traffic.spec
create mode 100644 dlls/traffic/traffic_main.c
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
+
+ at MAKE_DLL_RULES@
+
+ at 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..c3f0f8b
--- /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;
+}
--
1.5.6.3
More information about the wine-patches
mailing list