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 declaration of Runtime.Events #1434

Merged
merged 1 commit into from
Aug 23, 2019
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
20 changes: 18 additions & 2 deletions src/nanoFramework.Runtime.Events/nf_rt_events_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@

static const CLR_RT_MethodHandler method_lookup[] =
{
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
Library_nf_rt_events_native_nanoFramework_Runtime_Events_NativeEventDispatcher::EnableInterrupt___VOID,
Library_nf_rt_events_native_nanoFramework_Runtime_Events_NativeEventDispatcher::DisableInterrupt___VOID,
Library_nf_rt_events_native_nanoFramework_Runtime_Events_NativeEventDispatcher::Dispose___VOID__BOOLEAN,
Expand Down Expand Up @@ -45,14 +58,17 @@ static const CLR_RT_MethodHandler method_lookup[] =
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
Library_nf_rt_events_native_nanoFramework_Runtime_Events_WeakDelegate::Combine___STATIC__mscorlibSystemDelegate__mscorlibSystemDelegate__mscorlibSystemDelegate,
Library_nf_rt_events_native_nanoFramework_Runtime_Events_WeakDelegate::Remove___STATIC__mscorlibSystemDelegate__mscorlibSystemDelegate__mscorlibSystemDelegate,
};

const CLR_RT_NativeAssemblyData g_CLR_AssemblyNative_nanoFramework_Runtime_Events =
{
"nanoFramework.Runtime.Events",
0x9ACFB207,
0x9E949BB1,
method_lookup,
{ 100, 0, 5, 0 }
{ 100, 0, 6, 0 }
};
44 changes: 37 additions & 7 deletions src/nanoFramework.Runtime.Events/nf_rt_events_native.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,36 @@
#include <nanoCLR_Checks.h>


struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_CustomEvent
{
static const int FIELD_STATIC__CustomEventPosted = 0;


//--//

};

struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_BaseEvent
{
static const int FIELD__Source = 1;
static const int FIELD__Message = 2;


//--//

};

struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_CustomEvent__CustomEventInternal
{
static const int FIELD__Data1 = 3;
static const int FIELD__Data2 = 4;
static const int FIELD__Time = 5;


//--//

};

struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_NativeEventDispatcher
{
static const int FIELD__threadSpawn = 1;
Expand All @@ -34,8 +64,8 @@ struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_NativeEventDispa

struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_EventSink
{
static const int FIELD_STATIC__s_eventSink = 0;
static const int FIELD_STATIC__s_eventInfoTable = 1;
static const int FIELD_STATIC__s_eventSink = 1;
static const int FIELD_STATIC__s_eventInfoTable = 2;

NANOCLR_NATIVE_DECLARE(EventConfig___VOID);

Expand All @@ -55,19 +85,19 @@ struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_EventSink__Event

};

struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_BaseEvent
struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_EventArgs
{
static const int FIELD__Source = 1;
static const int FIELD__Message = 2;
static const int FIELD_STATIC__Empty = 3;


//--//

};

struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_EventArgs
struct Library_nf_rt_events_native_nanoFramework_Runtime_Events_CustomEventArgs
{
static const int FIELD_STATIC__Empty = 2;
static const int FIELD___data1 = 1;
static const int FIELD___data2 = 2;


//--//
Expand Down