Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonojenkins <jo.shields+jenkins@xamarin.com>2020-04-02 19:46:06 +0300
committerGitHub <noreply@github.com>2020-04-02 19:46:06 +0300
commit8fb93012925bf4b3b7b2419004cacf4dc75cc752 (patch)
treef0ef82371b8a5b6e49a3636360dbde7dda46b644
parent7bfb441fb4c62defcf03ba4d430ab1183d8313a0 (diff)
[meta] Add mono_type_get_name_full to public API (#19415)
This is needed by Xamarin.Android to be able to round-trip with names fetched via reflection, as the only public API for this (`mono_type_get_name`) uses the IL format instead. Fixes https://github.com/mono/mono/issues/19377 Co-authored-by: CoffeeFlux <CoffeeFlux@users.noreply.github.com>
-rw-r--r--mono/metadata/class-internals.h10
-rw-r--r--mono/metadata/class.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/mono/metadata/class-internals.h b/mono/metadata/class-internals.h
index 21d0e4b0881..2a029cae37b 100644
--- a/mono/metadata/class-internals.h
+++ b/mono/metadata/class-internals.h
@@ -47,13 +47,6 @@ typedef enum {
} MonoWrapperType;
typedef enum {
- MONO_TYPE_NAME_FORMAT_IL,
- MONO_TYPE_NAME_FORMAT_REFLECTION,
- MONO_TYPE_NAME_FORMAT_FULL_NAME,
- MONO_TYPE_NAME_FORMAT_ASSEMBLY_QUALIFIED
-} MonoTypeNameFormat;
-
-typedef enum {
MONO_REMOTING_TARGET_UNKNOWN,
MONO_REMOTING_TARGET_APPDOMAIN,
MONO_REMOTING_TARGET_COMINTEROP
@@ -1151,9 +1144,6 @@ char*
mono_identifier_escape_type_name_chars (const char* identifier);
char*
-mono_type_get_name_full (MonoType *type, MonoTypeNameFormat format);
-
-char*
mono_type_get_full_name (MonoClass *klass);
char *
diff --git a/mono/metadata/class.h b/mono/metadata/class.h
index 9eac22e4f3e..8966e029b7c 100644
--- a/mono/metadata/class.h
+++ b/mono/metadata/class.h
@@ -18,6 +18,13 @@ typedef struct _MonoClassField MonoClassField;
typedef struct _MonoProperty MonoProperty;
typedef struct _MonoEvent MonoEvent;
+typedef enum {
+ MONO_TYPE_NAME_FORMAT_IL,
+ MONO_TYPE_NAME_FORMAT_REFLECTION,
+ MONO_TYPE_NAME_FORMAT_FULL_NAME,
+ MONO_TYPE_NAME_FORMAT_ASSEMBLY_QUALIFIED
+} MonoTypeNameFormat;
+
MONO_API MONO_RT_EXTERNAL_ONLY
MonoClass *
mono_class_get (MonoImage *image, uint32_t type_token);
@@ -130,6 +137,9 @@ MONO_API MONO_RT_EXTERNAL_ONLY
void*
mono_ldtoken (MonoImage *image, uint32_t token, MonoClass **retclass, MonoGenericContext *context);
+MONO_API char *
+mono_type_get_name_full (MonoType *type, MonoTypeNameFormat format);
+
MONO_API char*
mono_type_get_name (MonoType *type);