Author: miguel
Date: 2005-10-10 11:24:20 -0400 (Mon, 10 Oct 2005)
New Revision: 51516

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/class.c
   trunk/mono/mono/metadata/image.c
Log:
2005-10-09  Miguel de Icaza  <[EMAIL PROTECTED]>

        * class.c (mono_type_get_full_name): Reimplement method that was
        removed. 

        * image.c: Some docs

Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-10-10 14:55:30 UTC (rev 51515)
+++ trunk/mono/mono/metadata/ChangeLog  2005-10-10 15:24:20 UTC (rev 51516)
@@ -1,3 +1,10 @@
+2005-10-09  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * class.c (mono_type_get_full_name): Reimplement method that was
+       removed. 
+
+       * image.c: Some docs
+
 2005-10-10  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * profiler.c (output_newobj_profile): Fix printing of Total memory

Modified: trunk/mono/mono/metadata/class.c
===================================================================
--- trunk/mono/mono/metadata/class.c    2005-10-10 14:55:30 UTC (rev 51515)
+++ trunk/mono/mono/metadata/class.c    2005-10-10 15:24:20 UTC (rev 51516)
@@ -307,9 +307,21 @@
 /**
  * mono_type_get_name:
  * @type: a type
+ * @format: the format for the return string.
  *
- * Returns: the string representation for type as required by 
System.Reflection.
- * The inverse of mono_reflection_parse_type ().
+ * 
+ * Returns: the string representation in a number of formats:
+ *
+ * if format is MONO_TYPE_NAME_FORMAT_REFLECTION, the return string is
+ * returned in the formatrequired by System.Reflection, this is the
+ * inverse of mono_reflection_parse_type ().
+ *
+ * if format is MONO_TYPE_NAME_FORMAT_IL, it returns a syntax that can
+ * be used by the IL assembler.
+ *
+ * if format is MONO_TYPE_NAME_FORMAT_FULL_NAME
+ *
+ * if format is MONO_TYPE_NAME_FORMAT_ASSEMBLY_QUALIFIED
  */
 char*
 mono_type_get_name_full (MonoType *type, MonoTypeNameFormat format)
@@ -331,6 +343,19 @@
        return g_string_free (result, FALSE);
 }
 
+/**
+ * mono_type_get_name:
+ * @class: a class
+ *
+ * Returns: the string representation for type as required by 
System.Reflection.
+ * The inverse of mono_reflection_parse_type ().
+ */
+char *
+mono_type_get_full_name (MonoClass *class)
+{
+       return mono_type_get_name_full (mono_class_get_type (class), 
MONO_TYPE_NAME_FORMAT_REFLECTION);
+}
+
 char*
 mono_type_get_name (MonoType *type)
 {

Modified: trunk/mono/mono/metadata/image.c
===================================================================
--- trunk/mono/mono/metadata/image.c    2005-10-10 14:55:30 UTC (rev 51515)
+++ trunk/mono/mono/metadata/image.c    2005-10-10 15:24:20 UTC (rev 51516)
@@ -1253,6 +1253,16 @@
        }
 }
 
+/**
+ * mono_image_lookup_resource:
+ * @image: the image to look up the resource in
+ * @res_id: A MONO_PE_RESOURCE_ID_ that represents the resource ID to lookup.
+ * @lang_id: The language id.
+ * @name: the resource name to lookup.
+ *
+ * Returns: NULL if not found, otherwise a pointer to the in-memory 
representation
+ * of the given resource.
+ */
 gpointer
 mono_image_lookup_resource (MonoImage *image, guint32 res_id, guint32 lang_id, 
gunichar2 *name)
 {
@@ -1311,12 +1321,33 @@
        return(NULL);
 }
 
+/** 
+ * mono_image_get_entry_point:
+ * @image: the image where the entry point will be looked up.
+ *
+ * Use this routine to determine the metadata token for method that
+ * has been flagged as the entry point.
+ *
+ * Returns: the token for the entry point method in the image
+ */
 guint32
 mono_image_get_entry_point (MonoImage *image)
 {
        return 
((MonoCLIImageInfo*)image->image_info)->cli_cli_header.ch_entry_point;
 }
 
+/**
+ * mono_image_get_resource:
+ * @image: the image where the resource will be looked up.
+ * @offset: The offset to add to the resource
+ * @size: a pointer to an int where the size of the resource will be stored
+ *
+ * This is a low-level routine that fetches a resource from the
+ * metadata that starts at a given @offset.  The @size parameter is
+ * filled with the data field as encoded in the metadata.
+ *
+ * Returns: the pointer to the resource whose offset is @offset.
+ */
 const char*
 mono_image_get_resource (MonoImage *image, guint32 offset, guint32 *size)
 {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to