* icall.c (ves_icall_System_Reflection_Module_GetGuidInternal):
New icall to return the GUID of a module.
svn path=/trunk/mono/; revision=15273
+2003-06-10 Zoltan Varga <vargaz@freemail.hu>
+
+ * icall.c (ves_icall_System_Reflection_Module_GetGuidInternal):
+ New icall to return the GUID of a module.
Mon Jun 9 19:33:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
Mon Jun 9 19:33:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
return mono_type_get_object (domain, &klass->byval_arg);
}
return mono_type_get_object (domain, &klass->byval_arg);
}
+static MonoString*
+ves_icall_System_Reflection_Module_GetGuidInternal (MonoReflectionModule *module)
+{
+ MonoDomain *domain = mono_object_domain (module);
+
+ MONO_ARCH_SAVE_REGS;
+
+ g_assert (module->image);
+ return mono_string_new (domain, module->image->guid);
+}
+
static MonoReflectionType*
ves_icall_ModuleBuilder_create_modified_type (MonoReflectionTypeBuilder *tb, MonoString *smodifiers)
{
static MonoReflectionType*
ves_icall_ModuleBuilder_create_modified_type (MonoReflectionTypeBuilder *tb, MonoString *smodifiers)
{
* System.Reflection.Module
*/
"System.Reflection.Module::GetGlobalType", ves_icall_System_Reflection_Module_GetGlobalType,
* System.Reflection.Module
*/
"System.Reflection.Module::GetGlobalType", ves_icall_System_Reflection_Module_GetGlobalType,
+ "System.Reflection.Module::GetGuidInternal", ves_icall_System_Reflection_Module_GetGuidInternal,