X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fdebug-helpers.h;h=09092f9e380b3c69807c4a0c83d15a12d4c556dc;hb=62b96ad507e6ba07bde09991a30e5447255e44ba;hp=ee6924fb6823f300f9b1995431e0bb178a75929b;hpb=0443306d611d0830e27327e1f0a3ef3457dfa535;p=mono.git diff --git a/mono/metadata/debug-helpers.h b/mono/metadata/debug-helpers.h index ee6924fb682..09092f9e380 100644 --- a/mono/metadata/debug-helpers.h +++ b/mono/metadata/debug-helpers.h @@ -1,15 +1,14 @@ #ifndef __MONO_DEBUG_HELPERS_H__ #define __MONO_DEBUG_HELPERS_H__ -#include #include -G_BEGIN_DECLS +MONO_BEGIN_DECLS typedef struct MonoDisHelper MonoDisHelper; -typedef char* (*MonoDisIndenter) (MonoDisHelper *dh, MonoMethod *method, guint32 ip_offset); -typedef char* (*MonoDisTokener) (MonoDisHelper *dh, MonoMethod *method, guint32 token); +typedef char* (*MonoDisIndenter) (MonoDisHelper *dh, MonoMethod *method, uint32_t ip_offset); +typedef char* (*MonoDisTokener) (MonoDisHelper *dh, MonoMethod *method, uint32_t token); struct MonoDisHelper { const char *newline; @@ -17,30 +16,33 @@ struct MonoDisHelper { const char *label_target; MonoDisIndenter indenter; MonoDisTokener tokener; - gpointer user_data; + void* user_data; }; -char* mono_disasm_code_one (MonoDisHelper *dh, MonoMethod *method, const guchar *ip, const guchar** endp); -char* mono_disasm_code (MonoDisHelper *dh, MonoMethod *method, const guchar *ip, const guchar* end); +MONO_API char* mono_disasm_code_one (MonoDisHelper *dh, MonoMethod *method, const mono_byte *ip, const mono_byte** endp); +MONO_API char* mono_disasm_code (MonoDisHelper *dh, MonoMethod *method, const mono_byte *ip, const mono_byte* end); typedef struct MonoMethodDesc MonoMethodDesc; -void mono_type_get_desc (GString *res, MonoType *type, gboolean include_namespace); -char* mono_type_full_name (MonoType *type); +MONO_API char* mono_type_full_name (MonoType *type); -char* mono_signature_get_desc (MonoMethodSignature *sig, gboolean include_namespace); +MONO_API char* mono_signature_get_desc (MonoMethodSignature *sig, mono_bool include_namespace); -MonoMethodDesc* mono_method_desc_new (const char *name, gboolean include_namespace); -MonoMethodDesc*mono_method_desc_from_method (MonoMethod *method); -void mono_method_desc_free (MonoMethodDesc *desc); -gboolean mono_method_desc_match (MonoMethodDesc *desc, MonoMethod *method); -gboolean mono_method_desc_full_match (MonoMethodDesc *desc, MonoMethod *method); -MonoMethod* mono_method_desc_search_in_class (MonoMethodDesc *desc, MonoClass *klass); -MonoMethod* mono_method_desc_search_in_image (MonoMethodDesc *desc, MonoImage *image); +MONO_API char* mono_context_get_desc (MonoGenericContext *context); -char* mono_method_full_name (MonoMethod *method, gboolean signature); +MONO_API MonoMethodDesc* mono_method_desc_new (const char *name, mono_bool include_namespace); +MONO_API MonoMethodDesc* mono_method_desc_from_method (MonoMethod *method); +MONO_API void mono_method_desc_free (MonoMethodDesc *desc); +MONO_API mono_bool mono_method_desc_match (MonoMethodDesc *desc, MonoMethod *method); +MONO_API mono_bool mono_method_desc_full_match (MonoMethodDesc *desc, MonoMethod *method); +MONO_API MonoMethod* mono_method_desc_search_in_class (MonoMethodDesc *desc, MonoClass *klass); +MONO_API MonoMethod* mono_method_desc_search_in_image (MonoMethodDesc *desc, MonoImage *image); -G_END_DECLS +MONO_API char* mono_method_full_name (MonoMethod *method, mono_bool signature); + +MONO_API char* mono_field_full_name (MonoClassField *field); + +MONO_END_DECLS #endif /* __MONO_DEBUG_HELPERS_H__ */