Hans Leidekker : pidgen: Add stub implementation.

Alexandre Julliard julliard at winehq.org
Tue Dec 16 08:40:39 CST 2008


Module: wine
Branch: master
Commit: efa2fcc07378285216ac9ea696e135985ed7bd90
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=efa2fcc07378285216ac9ea696e135985ed7bd90

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Dec 15 11:55:32 2008 +0100

pidgen: Add stub implementation.

---

 configure               |    9 +++++++++
 configure.ac            |    1 +
 dlls/pidgen/Makefile.in |   13 +++++++++++++
 dlls/pidgen/main.c      |   45 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/pidgen/pidgen.spec |    7 +++++++
 5 files changed, 75 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index eaa4da7..20d0182 100755
--- a/configure
+++ b/configure
@@ -25781,6 +25781,14 @@ dlls/pdh/tests/Makefile: dlls/pdh/tests/Makefile.in dlls/Maketest.rules"
 ac_config_files="$ac_config_files dlls/pdh/tests/Makefile"
 
 ALL_MAKEFILES="$ALL_MAKEFILES \\
+	dlls/pidgen/Makefile"
+test "x$enable_pidgen" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
+	pidgen"
+ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS
+dlls/pidgen/Makefile: dlls/pidgen/Makefile.in dlls/Makedll.rules"
+ac_config_files="$ac_config_files dlls/pidgen/Makefile"
+
+ALL_MAKEFILES="$ALL_MAKEFILES \\
 	dlls/powrprof/Makefile"
 test "x$enable_powrprof" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\
 	powrprof"
@@ -28230,6 +28238,7 @@ do
     "dlls/opengl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/tests/Makefile" ;;
     "dlls/pdh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/Makefile" ;;
     "dlls/pdh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/tests/Makefile" ;;
+    "dlls/pidgen/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pidgen/Makefile" ;;
     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
     "dlls/printui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/printui/Makefile" ;;
     "dlls/propsys/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/propsys/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index 071013c..b74fb19 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1981,6 +1981,7 @@ WINE_CONFIG_MAKEFILE([dlls/opengl32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_D
 WINE_CONFIG_MAKEFILE([dlls/opengl32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])
 WINE_CONFIG_MAKEFILE([dlls/pdh/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/pdh/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])
+WINE_CONFIG_MAKEFILE([dlls/pidgen/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/powrprof/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/printui/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/propsys/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
diff --git a/dlls/pidgen/Makefile.in b/dlls/pidgen/Makefile.in
new file mode 100644
index 0000000..98e6b9a
--- /dev/null
+++ b/dlls/pidgen/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = pidgen.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/pidgen/main.c b/dlls/pidgen/main.c
new file mode 100644
index 0000000..3aa3e84
--- /dev/null
+++ b/dlls/pidgen/main.c
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2008 Hans Leidekker for CodeWeavers
+ *
+ * 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 "config.h"
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(pidgen);
+
+/*****************************************************
+ *      DllMain
+ */
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
+{
+    TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
+
+    switch(reason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE;  /* prefer native version */
+
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls( hinst );
+        break;
+    }
+    return TRUE;
+}
diff --git a/dlls/pidgen/pidgen.spec b/dlls/pidgen/pidgen.spec
new file mode 100644
index 0000000..ad5c369
--- /dev/null
+++ b/dlls/pidgen/pidgen.spec
@@ -0,0 +1,7 @@
+@ stub PIDGenA
+@ stub PIDGenW
+@ stub PIDGenSimpA
+@ stub PIDGenSimpW
+@ stub SetupPIDGenA
+@ stub SetupPIDGenW
+@ stub VerifyPIDSequenceW




More information about the wine-cvs mailing list