Andrey Gusev : ninput: Add stub dll.
Alexandre Julliard
julliard at winehq.org
Wed Mar 7 17:14:06 CST 2018
Module: wine
Branch: master
Commit: 6b984a40c4ff0923793105b64cda96aeb2acdd3c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6b984a40c4ff0923793105b64cda96aeb2acdd3c
Author: Andrey Gusev <andrey.goosev at gmail.com>
Date: Tue Mar 6 18:55:06 2018 +0200
ninput: Add stub dll.
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
configure | 2 ++
configure.ac | 1 +
dlls/ninput/Makefile.in | 4 ++++
dlls/ninput/main.c | 41 +++++++++++++++++++++++++++++++++++++++++
dlls/ninput/ninput.spec | 24 ++++++++++++++++++++++++
5 files changed, 72 insertions(+)
diff --git a/configure b/configure
index b4cfc38..c1516af 100755
--- a/configure
+++ b/configure
@@ -1403,6 +1403,7 @@ enable_netapi32
enable_netcfgx
enable_netprofm
enable_newdev
+enable_ninput
enable_normaliz
enable_npmshtml
enable_npptools
@@ -18818,6 +18819,7 @@ wine_fn_config_makefile dlls/netcfgx/tests enable_tests
wine_fn_config_makefile dlls/netprofm enable_netprofm
wine_fn_config_makefile dlls/netprofm/tests enable_tests
wine_fn_config_makefile dlls/newdev enable_newdev
+wine_fn_config_makefile dlls/ninput enable_ninput
wine_fn_config_makefile dlls/normaliz enable_normaliz
wine_fn_config_makefile dlls/npmshtml enable_npmshtml
wine_fn_config_makefile dlls/npptools enable_npptools
diff --git a/configure.ac b/configure.ac
index 702267e..b6b66fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3470,6 +3470,7 @@ WINE_CONFIG_MAKEFILE(dlls/netcfgx/tests)
WINE_CONFIG_MAKEFILE(dlls/netprofm)
WINE_CONFIG_MAKEFILE(dlls/netprofm/tests)
WINE_CONFIG_MAKEFILE(dlls/newdev)
+WINE_CONFIG_MAKEFILE(dlls/ninput)
WINE_CONFIG_MAKEFILE(dlls/normaliz)
WINE_CONFIG_MAKEFILE(dlls/npmshtml)
WINE_CONFIG_MAKEFILE(dlls/npptools)
diff --git a/dlls/ninput/Makefile.in b/dlls/ninput/Makefile.in
new file mode 100644
index 0000000..3d3cc7f
--- /dev/null
+++ b/dlls/ninput/Makefile.in
@@ -0,0 +1,4 @@
+MODULE = ninput.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/ninput/main.c b/dlls/ninput/main.c
new file mode 100644
index 0000000..0f23128
--- /dev/null
+++ b/dlls/ninput/main.c
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2018 Andrey Gusev
+ *
+ * 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(ninput);
+
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD reason, LPVOID lpv)
+{
+ TRACE("(%p, %d, %p)\n", hInstDLL, reason, lpv);
+
+ switch (reason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hInstDLL);
+ break;
+ }
+ return TRUE;
+}
diff --git a/dlls/ninput/ninput.spec b/dlls/ninput/ninput.spec
new file mode 100644
index 0000000..372beb2
--- /dev/null
+++ b/dlls/ninput/ninput.spec
@@ -0,0 +1,24 @@
+@ stub DefaultInputHandler
+@ stub AddPointerInteractionContext
+@ stub BufferPointerPacketsInteractionContext
+@ stub CreateInteractionContext
+@ stub DestroyInteractionContext
+@ stub GetCrossSlideParameterInteractionContext
+@ stub GetInertiaParameterInteractionContext
+@ stub GetInteractionConfigurationInteractionContext
+@ stub GetMouseWheelParameterInteractionContext
+@ stub GetPropertyInteractionContext
+@ stub GetStateInteractionContext
+@ stub ProcessBufferedPacketsInteractionContext
+@ stub ProcessInertiaInteractionContext
+@ stub ProcessPointerFramesInteractionContext
+@ stub RegisterOutputCallbackInteractionContext
+@ stub RemovePointerInteractionContext
+@ stub ResetInteractionContext
+@ stub SetCrossSlideParametersInteractionContext
+@ stub SetInertiaParameterInteractionContext
+@ stub SetInteractionConfigurationInteractionContext
+@ stub SetMouseWheelParameterInteractionContext
+@ stub SetPivotInteractionContext
+@ stub SetPropertyInteractionContext
+@ stub StopInteractionContext
More information about the wine-cvs
mailing list