Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 63 lines (44 sloc) 1.566 kb
a5d359c @illupus Dum de dum, missing files for previous commit.
illupus authored
1 #ifndef __MONO_METADATA_VERIFY_H__
2 #define __MONO_METADATA_VERIFY_H__
3
4 #include <mono/metadata/metadata.h>
5 #include <mono/metadata/image.h>
6 #include <mono/metadata/loader.h>
8c3df7b @illupus Wed Feb 24 16:02:42 CET 2010 Paolo Molaro <lupus@ximian.com>
illupus authored
7 #include <glib.h> /* GSList dep */
a5d359c @illupus Dum de dum, missing files for previous commit.
illupus authored
8
8c3df7b @illupus Wed Feb 24 16:02:42 CET 2010 Paolo Molaro <lupus@ximian.com>
illupus authored
9 MONO_BEGIN_DECLS
b448c94 2005-06-09 Duncan Mak <duncan@novell.com>
Duncan Mak authored
10
a5d359c @illupus Dum de dum, missing files for previous commit.
illupus authored
11 typedef enum {
9b3034f @kumpera 2007-06-11 Rodrigo Kumpera <kumpera@gmail.com>
kumpera authored
12 MONO_VERIFY_OK,
13 MONO_VERIFY_ERROR,
14 MONO_VERIFY_WARNING,
15 MONO_VERIFY_CLS = 4,
16 MONO_VERIFY_ALL = 7,
5345dc9 @kumpera 2007-12-13 Rodrigo Kumpera <rkumpera@novell.com>
kumpera authored
17
7dd60c7 @kumpera 2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>
kumpera authored
18 /* Status signaling code that is not verifiable.*/
19 MONO_VERIFY_NOT_VERIFIABLE = 8,
20
5345dc9 @kumpera 2007-12-13 Rodrigo Kumpera <rkumpera@novell.com>
kumpera authored
21 /*OR it with other flags*/
22
23 /* Abort the verification if the code is not verifiable.
24 * The standard behavior is to abort if the code is not valid.
25 * */
26 MONO_VERIFY_FAIL_FAST = 16,
27
28
29 /* Perform less verification of the code. This flag should be used
30 * if one wants the verifier to be more compatible to the MS runtime.
31 * Mind that this is not to be more compatible with MS peverify, but
32 * with the runtime itself, that has a less strict verifier.
33 */
34 MONO_VERIFY_NON_STRICT = 32,
35
7dd60c7 @kumpera 2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>
kumpera authored
36 /*Skip all visibility related checks*/
37 MONO_VERIFY_SKIP_VISIBILITY = 64,
3c8cbe9 @kumpera 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
kumpera authored
38
39 /*Skip all visibility related checks*/
8c3df7b @illupus Wed Feb 24 16:02:42 CET 2010 Paolo Molaro <lupus@ximian.com>
illupus authored
40 MONO_VERIFY_REPORT_ALL_ERRORS = 128
3c8cbe9 @kumpera 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
kumpera authored
41
a5d359c @illupus Dum de dum, missing files for previous commit.
illupus authored
42 } MonoVerifyStatus;
43
44 typedef struct {
45 char *message;
46 MonoVerifyStatus status;
47 } MonoVerifyInfo;
48
7dd60c7 @kumpera 2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>
kumpera authored
49 typedef struct {
50 MonoVerifyInfo info;
8c3df7b @illupus Wed Feb 24 16:02:42 CET 2010 Paolo Molaro <lupus@ximian.com>
illupus authored
51 int8_t exception_type; /*should be one of MONO_EXCEPTION_* */
7dd60c7 @kumpera 2008-02-18 Rodrigo Kumpera <rkumpera@novell.com>
kumpera authored
52 } MonoVerifyInfoExtended;
53
54
4beada2 @tritao Added MONO_API macro to annotate and control visibility of public (expor...
tritao authored
55 MONO_API GSList* mono_method_verify (MonoMethod *method, int level);
56 MONO_API void mono_free_verify_list (GSList *list);
57 MONO_API char* mono_verify_corlib (void);
a5d359c @illupus Dum de dum, missing files for previous commit.
illupus authored
58
8c3df7b @illupus Wed Feb 24 16:02:42 CET 2010 Paolo Molaro <lupus@ximian.com>
illupus authored
59 MONO_END_DECLS
b448c94 2005-06-09 Duncan Mak <duncan@novell.com>
Duncan Mak authored
60
a5d359c @illupus Dum de dum, missing files for previous commit.
illupus authored
61 #endif /* __MONO_METADATA_VERIFY_H__ */
62
Something went wrong with that request. Please try again.