[pkg-wine-party] [wine] 52/66: wlanapi: Add a stub for WlanEnumInterfaces.
Jens Reyer
jreyer-guest at moszumanska.debian.org
Mon Oct 10 13:03:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
jreyer-guest pushed a commit to branch upstream-stable
in repository wine.
commit 4eb21e4cb2222300c3e39179f67ab82b301b05c3
Author: Austin English <austinenglish at gmail.com>
Date: Sun Jan 24 21:32:20 2016 -0600
wlanapi: Add a stub for WlanEnumInterfaces.
Signed-off-by: Austin English <austinenglish at gmail.com>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit d92dc216f29223b63be086d1262c1a78ef1416a9)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/wlanapi/main.c | 8 ++++++++
dlls/wlanapi/wlanapi.spec | 2 +-
include/Makefile.in | 1 +
include/wlanapi.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 61 insertions(+), 1 deletion(-)
diff --git a/dlls/wlanapi/main.c b/dlls/wlanapi/main.c
index 0b0d100..3674f79 100644
--- a/dlls/wlanapi/main.c
+++ b/dlls/wlanapi/main.c
@@ -24,8 +24,16 @@
#include "winbase.h"
#include "wine/debug.h"
+#include "wlanapi.h"
+
WINE_DEFAULT_DEBUG_CHANNEL(wlanapi);
+DWORD WINAPI WlanEnumInterfaces(HANDLE client, void *reserved, WLAN_INTERFACE_INFO_LIST **interface_list)
+{
+ FIXME("(%p, %p, %p) stub\n", client, reserved, interface_list);
+ return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
DWORD WINAPI WlanOpenHandle(DWORD clientVersion, PVOID reserved,
PDWORD negotiatedVersion, PHANDLE clientHandle)
{
diff --git a/dlls/wlanapi/wlanapi.spec b/dlls/wlanapi/wlanapi.spec
index 79f9e43..e55bf06 100644
--- a/dlls/wlanapi/wlanapi.spec
+++ b/dlls/wlanapi/wlanapi.spec
@@ -3,7 +3,7 @@
@ stub WlanConnect
@ stub WlanDeleteProfile
@ stub WlanDisconnect
-@ stub WlanEnumInterfaces
+@ stdcall WlanEnumInterfaces(long ptr ptr)
@ stub WlanExtractPsdIEDataList
@ stub WlanFreeMemory
@ stub WlanGetAvailableNetworkList
diff --git a/include/Makefile.in b/include/Makefile.in
index 85088fe..bd8f16f 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -654,6 +654,7 @@ HEADER_SRCS = \
winuser.h \
winuser.rh \
winver.h \
+ wlanapi.h \
wmistr.h \
wnaspi32.h \
wownt32.h \
diff --git a/include/wlanapi.h b/include/wlanapi.h
new file mode 100644
index 0000000..63922be
--- /dev/null
+++ b/include/wlanapi.h
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 2016 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
+ */
+
+#ifndef _WLAN_WLANAPI_H
+#define _WLAN_WLANAPI_H
+
+typedef enum _WLAN_INTERFACE_STATE
+{
+ wlan_interface_state_not_ready,
+ wlan_interface_state_connected,
+ wlan_interface_state_ad_hoc_network_formed,
+ wlan_interface_state_disconnecting,
+ wlan_interface_state_disconnected,
+ wlan_interface_state_associating,
+ wlan_interface_state_discovering,
+ wlan_interface_state_authenticating
+} WLAN_INTERFACE_STATE, *PWLAN_INTERFACE_STATE;
+
+typedef struct _WLAN_INTERFACE_INFO
+{
+ GUID InterfaceGuid;
+ WCHAR strInterfaceDescription[256];
+ WLAN_INTERFACE_STATE isState;
+} WLAN_INTERFACE_INFO, *PWLAN_INTERFACE_INFO;
+
+typedef struct _WLAN_INTERFACE_INFO_LIST
+{
+ DWORD dwNumberOfItems;
+ DWORD dwIndex;
+ WLAN_INTERFACE_INFO InterfaceInfo[1];
+} WLAN_INTERFACE_INFO_LIST, *PWLAN_INTERFACE_INFO_LIST;
+
+DWORD WINAPI WlanEnumInterfaces(HANDLE, void *, WLAN_INTERFACE_INFO_LIST **);
+DWORD WINAPI WlanOpenHandle(DWORD, void *, DWORD *, HANDLE *);
+
+#endif /* _WLAN_WLANAPI_H */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wine/wine.git
More information about the pkg-wine-party
mailing list