Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / metadata / sgen-toggleref.h
1 /**
2  * \file
3  * toggleref support for sgen
4  *
5  * Copyright 2011 Xamarin, Inc.
6  *
7  * Author:
8  *  Rodrigo Kumpera (kumpera@gmail.com)
9  * 
10  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
11  */
12
13 #ifndef _MONO_SGEN_TOGGLEREF_H_
14 #define _MONO_SGEN_TOGGLEREF_H_
15
16 #include <mono/utils/mono-publib.h>
17
18 MONO_BEGIN_DECLS
19
20 /* GC toggle ref support */
21
22 typedef enum {
23         MONO_TOGGLE_REF_DROP,
24         MONO_TOGGLE_REF_STRONG,
25         MONO_TOGGLE_REF_WEAK
26 } MonoToggleRefStatus;
27
28 MONO_API void mono_gc_toggleref_register_callback (MonoToggleRefStatus (*proccess_toggleref) (MonoObject *obj));
29 MONO_API void mono_gc_toggleref_add (MonoObject *object, mono_bool strong_ref);
30
31 MONO_END_DECLS
32
33 #endif