-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmono.h
More file actions
25 lines (21 loc) · 1.04 KB
/
mono.h
File metadata and controls
25 lines (21 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
typedef struct MonoDomain MonoDomain;
typedef struct MonoAssembly MonoAssembly;
typedef enum {
MONO_DEBUG_FORMAT_NONE,
MONO_DEBUG_FORMAT_MONO,
MONO_DEBUG_FORMAT_DEBUGGER, // <-- Deprecated
} MonoDebugFormat;
// Main Mono entrypoint
typedef int (*mono_main_t)(int argc, char* argv[]);
// dotnet/runtime Mono runtime initialization
typedef int (*monovm_initialize_t)(int propertyCount, char const** propertyKeys, char const** propertyValues);
// Manual hosting APIs
typedef MonoDomain* (*mono_jit_init_t)(char const* file);
typedef MonoAssembly* (*mono_domain_assembly_open_t)(MonoDomain* domain, char const* name);
typedef void (*mono_assembly_setrootdir_t)(char const* root_dir);
typedef void (*mono_debug_init_t)(MonoDebugFormat format);
typedef void (*mono_debug_domain_create_t)(MonoDomain* domain);
typedef int (*mono_jit_exec_t)(MonoDomain* domain, MonoAssembly* assembly, int argc, char* argv[]);
typedef int (*mono_environment_exitcode_get_t)(void);
typedef void (*mono_jit_cleanup_t)(MonoDomain* domain);