From 6b9e61eebc02bb276962b8ae4e9950dd831fb06f Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Mon, 17 Apr 2017 18:38:52 +0200 Subject: [PATCH] [runtime] Make xamarin_open_assembly public and stable. (#2011) This is needed for Embeddinator-4000. --- runtime/runtime-internal.h | 1 - runtime/xamarin/runtime.h | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/runtime/runtime-internal.h b/runtime/runtime-internal.h index 660964a915..3bdb5936ff 100644 --- a/runtime/runtime-internal.h +++ b/runtime/runtime-internal.h @@ -30,7 +30,6 @@ extern "C" { #endif void *xamarin_marshal_return_value (MonoType *mtype, const char *type, MonoObject *retval, bool retain, MonoMethod *method, guint32 *exception_gchandle); -MonoAssembly * xamarin_open_assembly (const char *name); #ifdef __cplusplus } diff --git a/runtime/xamarin/runtime.h b/runtime/xamarin/runtime.h index a67029e194..3957e6862f 100644 --- a/runtime/xamarin/runtime.h +++ b/runtime/xamarin/runtime.h @@ -194,6 +194,13 @@ bool xamarin_locate_assembly_resource (const char *assembly_name, const char * void xamarin_printf (const char *format, ...); void xamarin_vprintf (const char *format, va_list args); +/* + * Look for an assembly in the app and open it. + * + * Stable API. + */ +MonoAssembly * xamarin_open_assembly (const char *name); + #if defined(__arm__) || defined(__aarch64__) void mono_aot_register_module (void *aot_info); #endif