Skip to content

Commit

Permalink
Fix System.IO.Port declaration (#1961)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Jun 25, 2021
1 parent 1c91d4a commit 4f67f17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/System.IO.Ports/sys_io_ser_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static const CLR_RT_MethodHandler method_lookup[] =
const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_System_IO_Ports =
{
"System.IO.Ports",
0x5292BAB2,
0x61B8380C,
method_lookup,
{ 100, 1, 1, 2 }
};
Expand Down
7 changes: 7 additions & 0 deletions src/System.IO.Ports/sys_io_ser_native.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ struct Library_sys_io_ser_native_System_IO_Ports_SerialDataEvent
static const int FIELD__Event = 4;

//--//

};

struct Library_sys_io_ser_native_System_IO_Ports_SerialDataReceivedEventArgs
{
static const int FIELD___data = 1;

//--//

};

struct Library_sys_io_ser_native_System_IO_Ports_SerialDeviceController
Expand All @@ -69,6 +71,7 @@ struct Library_sys_io_ser_native_System_IO_Ports_SerialDeviceController
static const int FIELD_STATIC__s_deviceCollection = 2;

//--//

};

struct Library_sys_io_ser_native_System_IO_Ports_SerialPort
Expand All @@ -94,6 +97,7 @@ struct Library_sys_io_ser_native_System_IO_Ports_SerialPort
static const int FIELD___syncLock = 17;
static const int FIELD___newLine = 18;
static const int FIELD___hasBeenOpened = 19;
static const int FIELD___encoding = 20;

NANOCLR_NATIVE_DECLARE(get_BytesToRead___I4);
NANOCLR_NATIVE_DECLARE(NativeDispose___VOID);
Expand All @@ -106,20 +110,23 @@ struct Library_sys_io_ser_native_System_IO_Ports_SerialPort
NANOCLR_NATIVE_DECLARE(GetDeviceSelector___STATIC__STRING);

//--//

};

struct Library_sys_io_ser_native_System_IO_Ports_SerialDeviceEventListener
{
static const int FIELD___serialDevicesMap = 1;

//--//

};

struct Library_sys_io_ser_native_System_IO_Ports_SerialStream
{
static const int FIELD___serial = 1;

//--//

};

extern const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_System_IO_Ports;
Expand Down

0 comments on commit 4f67f17

Please sign in to comment.