Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / metadata / verify.h
index 850438e8b019f202b1b43b50aad05b32e3beabb3..162ef4434e6829119b29a2b82ed5d11936788dc5 100644 (file)
@@ -1,11 +1,16 @@
+/**
+ * \file
+ */
+
 #ifndef __MONO_METADATA_VERIFY_H__
 #define __MONO_METADATA_VERIFY_H__
 
 #include <mono/metadata/metadata.h>
 #include <mono/metadata/image.h>
 #include <mono/metadata/loader.h>
+#include <glib.h> /* GSList dep */
 
-G_BEGIN_DECLS
+MONO_BEGIN_DECLS
 
 typedef enum {
        MONO_VERIFY_OK,
@@ -14,6 +19,9 @@ typedef enum {
        MONO_VERIFY_CLS = 4,
        MONO_VERIFY_ALL = 7,
 
+       /* Status signaling code that is not verifiable.*/
+       MONO_VERIFY_NOT_VERIFIABLE = 8,
+
        /*OR it with other flags*/
        
        /* Abort the verification if the code is not verifiable.
@@ -29,8 +37,12 @@ typedef enum {
         */
        MONO_VERIFY_NON_STRICT = 32,
 
-       /* Status signaling code that is not verifiable.*/
-       MONO_VERIFY_NOT_VERIFIABLE = 8
+       /*Skip all visibility related checks*/
+       MONO_VERIFY_SKIP_VISIBILITY = 64,
+
+       /*Skip all visibility related checks*/
+       MONO_VERIFY_REPORT_ALL_ERRORS = 128
+
 } MonoVerifyStatus;
 
 typedef struct {
@@ -38,12 +50,17 @@ typedef struct {
        MonoVerifyStatus status;
 } MonoVerifyInfo;
 
-GSList* mono_image_verify_tables (MonoImage *image, int level);
-GSList* mono_method_verify       (MonoMethod *method, int level);
-void    mono_free_verify_list    (GSList *list);
-char*   mono_verify_corlib       (void);
+typedef struct {
+       MonoVerifyInfo info;
+       int8_t exception_type; /*should be one of MONO_EXCEPTION_* */
+} MonoVerifyInfoExtended;
+
+
+MONO_API GSList* mono_method_verify       (MonoMethod *method, int level);
+MONO_API void    mono_free_verify_list    (GSList *list);
+MONO_API char*   mono_verify_corlib       (void);
 
-G_END_DECLS
+MONO_END_DECLS
 
 #endif  /* __MONO_METADATA_VERIFY_H__ */