Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Windows.Devices.Wifi assembly #1876

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions src/Windows.Devices.Wifi/win_dev_wifi_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include "win_dev_wifi_native.h"

// clang-format off

static const CLR_RT_MethodHandler method_lookup[] =
{
NULL,
Expand Down Expand Up @@ -32,6 +34,9 @@ static const CLR_RT_MethodHandler method_lookup[] =
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiAdapter::DisposeNative___VOID,
Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiAdapter::NativeInit___VOID,
Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiAdapter::NativeConnect___WindowsDevicesWiFiWiFiConnectionStatus__STRING__STRING__WindowsDevicesWiFiWiFiReconnectionKind,
Expand All @@ -50,14 +55,14 @@ static const CLR_RT_MethodHandler method_lookup[] =
NULL,
NULL,
NULL,
NULL,
NULL,
};

const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_Windows_Devices_Wifi =
{
"Windows.Devices.Wifi",
0xDF2FD922,
0xA94A849E,
method_lookup,
{ 100, 0, 6, 1 }
{ 100, 0, 6, 2 }
};

// clang-format on
26 changes: 10 additions & 16 deletions src/Windows.Devices.Wifi/win_dev_wifi_native.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// See LICENSE file in the project root for full license information.
//


#ifndef _WIN_DEV_WIFI_NATIVE_H_
#define _WIN_DEV_WIFI_NATIVE_H_

Expand All @@ -19,7 +18,13 @@ struct Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiAvailableNetwork
static const int FIELD___networkKind = 4;

//--//
};

struct Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiConnectionResult
{
static const int FIELD___ConnectionStatus = 1;

//--//
};

struct Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiAdapter
Expand All @@ -33,47 +38,36 @@ struct Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiAdapter

NANOCLR_NATIVE_DECLARE(DisposeNative___VOID);
NANOCLR_NATIVE_DECLARE(NativeInit___VOID);
NANOCLR_NATIVE_DECLARE(NativeConnect___WindowsDevicesWiFiWiFiConnectionStatus__STRING__STRING__WindowsDevicesWiFiWiFiReconnectionKind);
NANOCLR_NATIVE_DECLARE(
NativeConnect___WindowsDevicesWiFiWiFiConnectionStatus__STRING__STRING__WindowsDevicesWiFiWiFiReconnectionKind);
NANOCLR_NATIVE_DECLARE(NativeDisconnect___VOID);
NANOCLR_NATIVE_DECLARE(NativeScanAsync___VOID);
NANOCLR_NATIVE_DECLARE(GetNativeScanReport___SZARRAY_U1);
NANOCLR_NATIVE_DECLARE(NativeFindWirelessAdapters___STATIC__SZARRAY_U1);

//--//

};

struct Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiConnectionResult
{
static const int FIELD___ConnectionStatus = 1;

//--//

};

struct Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiEvent
{
static const int FIELD__EventType = 1;
static const int FIELD__Time = 2;
static const int FIELD__EventType = 3;
static const int FIELD__Time = 4;

//--//

};

struct Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiEventListener
{
static const int FIELD__wifiAdapters = 1;

//--//

};

struct Library_win_dev_wifi_native_Windows_Devices_WiFi_WiFiNetworkReport
{
static const int FIELD___wifiNetworks = 1;

//--//

};

extern const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_Windows_Devices_Wifi;
Expand Down