2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mono-debugger.git] / mono / metadata / security-core-clr.h
blob6d90b7a2ced450f8b582628243385baefc0052f0
1 /*
2 * security-core-clr.h: CoreCLR security
4 * Author:
5 * Mark Probst <mark.probst@gmail.com>
7 * (C) 2007 Novell, Inc
8 */
10 #ifndef _MONO_METADATA_SECURITY_CORE_CLR_H_
11 #define _MONO_METADATA_SECURITY_CORE_CLR_H_
13 #include <mono/metadata/reflection.h>
15 typedef enum {
16 /* We compare these values as integers, so the order must not
17 be changed. */
18 MONO_SECURITY_CORE_CLR_TRANSPARENT = 0,
19 MONO_SECURITY_CORE_CLR_SAFE_CRITICAL,
20 MONO_SECURITY_CORE_CLR_CRITICAL
21 } MonoSecurityCoreCLRLevel;
23 extern gboolean mono_security_core_clr_test;
25 extern MonoSecurityCoreCLRLevel mono_security_core_clr_level_from_cinfo (MonoCustomAttrInfo *cinfo, MonoImage *image) MONO_INTERNAL;
27 extern MonoSecurityCoreCLRLevel mono_security_core_clr_class_level (MonoClass *class) MONO_INTERNAL;
28 extern MonoSecurityCoreCLRLevel mono_security_core_clr_method_level (MonoMethod *method, gboolean with_class_level) MONO_INTERNAL;
30 extern gboolean mono_security_core_clr_is_platform_image (MonoImage *image) MONO_INTERNAL;
32 #endif /* _MONO_METADATA_SECURITY_CORE_CLR_H_ */