Skip to content

Commit 858221c

Browse files
authored
[MonoAPI] Split type and function headers, add MONO_API_FUNCTION macro (#65446)
* [monoapi] Split type and function headers, add MONO_API_FUNCTION macro The idea is that the function header can be included multiple times with different definitions of MONO_API_FUNCTION in order to make it easier to re-used the definitions for embedding the runtime in late-binding scenarios * rename public mono/mini subdirectory to mono/jit To match how embedders see the tree. Update the runtime to include <mono/jit/jit.h> instead of <mono/mini/jit.h>. No change in public API * Add needed includes to mobile testing host templates * add unstable API comment to the details headers, too * use install(FILES) to copy the headers not other stray files to the include dir * update CODEOWNERS * Remove duplicate definitions of mono_event_get_remove_method This was already duplicated before the header reorganization, e.g. here https://github.com/dotnet/runtime/blob/b9a55b4f52243325359ced26e3d4b31ccacdc381/src/native/public/mono/metadata/class.h#L279-L282
1 parent 3f99a86 commit 858221c

File tree

103 files changed

+3402
-3251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+3402
-3251
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959

6060
/src/mono/dlls @thaystg @lambdageek
6161

62+
/src/native/public/mono @marek-safar @lambdageek
63+
6264
# Obsoletions / Custom Diagnostics
6365

6466
/docs/project/list-of-diagnostics.md @jeffhandley

src/mono/mono/eventpipe/test/ep-setup-tests.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <eventpipe/ep.h>
22
#include <eglib/test/test.h>
3-
#include <mono/mini/jit.h>
3+
#include <mono/jit/jit.h>
44
#include <mono/metadata/assembly.h>
55

66
MonoDomain *eventpipe_test_domain;

src/mono/mono/eventpipe/test/ep-teardown-tests.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <eventpipe/ep.h>
22
#include <eglib/test/test.h>
3-
#include <mono/mini/jit.h>
3+
#include <mono/jit/jit.h>
44

55
#define TEST_FILE "./ep_test_create_file.txt"
66
#define TEST_FILE_2 "./ep_test_create_file_2.txt"

src/mono/mono/metadata/domain-internals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <mono/metadata/loader-internals.h>
2121
#include <mono/metadata/mempool-internals.h>
2222
#include <mono/metadata/handle-decl.h>
23-
#include <mono/mini/mono-private-unstable.h>
23+
#include <mono/jit/mono-private-unstable.h>
2424

2525
G_BEGIN_DECLS
2626

src/mono/mono/metadata/jit-info.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <mono/metadata/loader-internals.h>
2121
#include <mono/metadata/mempool-internals.h>
2222
#include <mono/metadata/handle-decl.h>
23-
#include <mono/mini/mono-private-unstable.h>
23+
#include <mono/jit/mono-private-unstable.h>
2424

2525
G_BEGIN_DECLS
2626

src/mono/mono/mini/aot-runtime-wasm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <sys/types.h>
99

1010
#include "mini.h"
11-
#include <mono/mini/mono-private-unstable.h>
11+
#include <mono/jit/mono-private-unstable.h>
1212
#include "interp/interp.h"
1313

1414
#ifdef TARGET_WASM

src/mono/mono/mini/aot-runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
#include "aot-runtime.h"
7070
#include "jit-icalls.h"
7171
#include "mini-runtime.h"
72-
#include <mono/mini/mono-private-unstable.h>
72+
#include <mono/jit/mono-private-unstable.h>
7373
#include "llvmonly-runtime.h"
7474

7575
#include <mono/metadata/components.h>

src/mono/mono/mini/debug-mini.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include "mini.h"
1212
#include "mini-runtime.h"
13-
#include <mono/mini/jit.h>
13+
#include <mono/jit/jit.h>
1414
#include "config.h"
1515
#include <mono/metadata/verify.h>
1616
#include <mono/metadata/mono-config.h>

src/mono/mono/mini/driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#include <mono/mini/debugger-agent-external.h>
5959

6060
#include "mini.h"
61-
#include <mono/mini/jit.h>
61+
#include <mono/jit/jit.h>
6262
#include "aot-compiler.h"
6363
#include "aot-runtime.h"
6464
#include "mini-runtime.h"

src/mono/mono/mini/method-to-ir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
#include "ir-emit.h"
7878

7979
#include "jit-icalls.h"
80-
#include <mono/mini/jit.h>
80+
#include <mono/jit/jit.h>
8181
#include "seq-points.h"
8282
#include "aot-compiler.h"
8383
#include "mini-llvm.h"

0 commit comments

Comments
 (0)