Hide some more methods
authorMiguel de Icaza <miguel@gnome.org>
Mon, 1 May 2006 20:32:46 +0000 (20:32 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Mon, 1 May 2006 20:32:46 +0000 (20:32 -0000)
svn path=/trunk/mono/; revision=60146

mono/metadata/reflection.c
mono/metadata/reflection.h
mono/utils/mono-counters.c

index 3382f5d6ae15fb559d7fb7e66131f11fca967d94..1e69c00c1545b6b14296d718e8e39add6c38e785 100644 (file)
@@ -7122,7 +7122,7 @@ mono_custom_attrs_construct (MonoCustomAttrInfo *cinfo)
        return result;
 }
 
-MonoArray*
+static MonoArray*
 mono_custom_attrs_construct_by_type (MonoCustomAttrInfo *cinfo, MonoClass *attr_klass)
 {
        MonoArray *result;
@@ -7149,7 +7149,7 @@ mono_custom_attrs_construct_by_type (MonoCustomAttrInfo *cinfo, MonoClass *attr_
        return result;
 }
 
-MonoArray*
+static MonoArray*
 mono_custom_attrs_data_construct (MonoCustomAttrInfo *cinfo)
 {
        MonoArray *result;
index cf942d6599b60a7f06900278457be630778320ad..ec46d0d68cb9fa0a56943d969c4e84fc4a11b2e6 100644 (file)
@@ -67,14 +67,12 @@ MonoReflectionMethodBody* mono_method_body_get_object (MonoDomain *domain, MonoM
 MonoObject* mono_get_dbnull_object (MonoDomain *domain);
 
 MonoArray*  mono_reflection_get_custom_attrs (MonoObject *obj);
-MonoArray*  mono_reflection_get_custom_attrs_by_type (MonoObject *obj, MonoClass *attr_klass);
 MonoArray*  mono_reflection_get_custom_attrs_data (MonoObject *obj);
 MonoArray*  mono_reflection_get_custom_attrs_blob (MonoReflectionAssembly *assembly, MonoObject *ctor, MonoArray *ctorArgs, MonoArray *properties, MonoArray *porpValues, MonoArray *fields, MonoArray* fieldValues);
 
 MonoCustomAttrInfo* mono_reflection_get_custom_attrs_info (MonoObject *obj);
 MonoArray*  mono_custom_attrs_construct (MonoCustomAttrInfo *cinfo);
 MonoArray*  mono_custom_attrs_construct_by_type (MonoCustomAttrInfo *cinfo, MonoClass *attr_klass);
-MonoArray*  mono_custom_attrs_data_construct (MonoCustomAttrInfo *cinfo);
 MonoCustomAttrInfo* mono_custom_attrs_from_index    (MonoImage *image, guint32 idx);
 MonoCustomAttrInfo* mono_custom_attrs_from_method   (MonoMethod *method);
 MonoCustomAttrInfo* mono_custom_attrs_from_class    (MonoClass *klass);
index 10233196c7cb333292576bd092c12f90cc00325a..a12a528d6d14550007c9c918149515bf038a9fe6 100644 (file)
@@ -14,12 +14,29 @@ struct _MonoCounter {
 static MonoCounter *counters = NULL;
 static int valid_mask = 0;
 
+/**
+ * mono_counters_enable:
+ * @section_mask: a mask listing the sections that will be displayed
+ *
+ * This is used to track which counters will be displayed.
+ */
 void
 mono_counters_enable (int section_mask)
 {
        valid_mask = section_mask & MONO_COUNTER_SECTION_MASK;
 }
 
+/**
+ * mono_counters_register:
+ * @name: The name for this counters.
+ * @type: One of the possible MONO_COUNTER types, or MONO_COUNTER_CALLBACK for a function pointer.
+ * @addr: The address to register.
+ *
+ * Register addr as the address of a counter of type type.
+ *
+ * It may be a function pointer if MONO_COUNTER_CALLBACK is specified:
+ * the function should return the value and take no arguments.
+ */
 void 
 mono_counters_register (const char* name, int type, void *addr)
 {
@@ -140,6 +157,13 @@ mono_counters_dump_section (int section, FILE *outfile)
        }
 }
 
+/**
+ * mono_counters_dump:
+ * @section_mask: The sections to dump counters for
+ * @outfile: a FILE to dump the results to
+ *
+ * Displays the counts of all the enabled counters registered. 
+ */
 void
 mono_counters_dump (int section_mask, FILE *outfile)
 {