Skip to content

Commit

Permalink
Update Networking Thread assembly signature (#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSoundy authored Jul 14, 2024
1 parent 2716658 commit ed6918d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ static const CLR_RT_MethodHandler method_lookup[] =
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
Library_net_thread_native_nanoFramework_Networking_Thread_OpenThread::NativeCreateStack___VOID,
Library_net_thread_native_nanoFramework_Networking_Thread_OpenThread::NativeSetActiveDataset___VOID,
Library_net_thread_native_nanoFramework_Networking_Thread_OpenThread::NativeGetActiveDataset___VOID,
Expand Down Expand Up @@ -82,12 +90,14 @@ static const CLR_RT_MethodHandler method_lookup[] =
NULL,
NULL,
NULL,
NULL,
NULL,
};

const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_nanoFramework_Networking_Thread =
{
"nanoFramework.Networking.Thread",
0xBFBB09A8,
0x4EF1F92D,
method_lookup,
{ 1, 0, 0, 0 }
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ typedef enum __nfpack ThreadDeviceRole

typedef enum __nfpack ThreadDeviceState
{
ThreadDeviceState_OPENTHREAD_EVENT_START = 0,
ThreadDeviceState_OPENTHREAD_EVENT_STOP = 1,
ThreadDeviceState_OPENTHREAD_EVENT_DETACHED = 2,
ThreadDeviceState_OPENTHREAD_EVENT_ATTACHED = 3,
ThreadDeviceState_OPENTHREAD_EVENT_IF_UP = 5,
ThreadDeviceState_OPENTHREAD_EVENT_IF_DOWN = 6,
ThreadDeviceState_OPENTHREAD_EVENT_GOT_IP6 = 7,
ThreadDeviceState_Start = 0,
ThreadDeviceState_Stop = 1,
ThreadDeviceState_Detached = 2,
ThreadDeviceState_Attached = 3,
ThreadDeviceState_InterfaceUp = 5,
ThreadDeviceState_InterfaceDown = 6,
ThreadDeviceState_GotIpv6 = 7,
} ThreadDeviceState;

typedef enum __nfpack ThreadDeviceType
Expand All @@ -66,22 +66,22 @@ typedef enum __nfpack ThreadDeviceType

struct Library_net_thread_native_nanoFramework_Networking_Thread_OpenThreadStateChangeEventArgs
{
static const int FIELD__currentState = 3;
static const int FIELD___currentState = 3;

//--//
};

struct Library_net_thread_native_nanoFramework_Networking_Thread_OpenThreadRoleChangeEventArgs
{
static const int FIELD__previousRole = 3;
static const int FIELD__currentRole = 4;
static const int FIELD___previousRole = 3;
static const int FIELD___currentRole = 4;

//--//
};

struct Library_net_thread_native_nanoFramework_Networking_Thread_OpenThreadConsoleOutputAvailableArgs
{
static const int FIELD__consoleLines = 3;
static const int FIELD___consoleLines = 3;

//--//
};
Expand Down Expand Up @@ -136,7 +136,7 @@ struct Library_net_thread_native_nanoFramework_Networking_Thread_OpenThreadDatas

struct Library_net_thread_native_nanoFramework_Networking_Thread_OpenThreadJoinerStartCompleteEventArgs
{
static const int FIELD__error = 3;
static const int FIELD___error = 3;

//--//
};
Expand Down

0 comments on commit ed6918d

Please sign in to comment.