Merge pull request #3962 from mkorkalo/fix_MonoBtlsContext_memory_leak
[mono.git] / mono / metadata / property-bag.h
1 /*
2  * property-bag.h: Linearizable property bag.
3  *
4  * Authors:
5  *   Rodrigo Kumpera (kumpera@gmail.com)
6  *
7  * Licensed under the MIT license. See LICENSE file in the project root for full license information.
8  */
9 #ifndef __MONO_METADATA_PROPERTY_BAG_H__
10 #define __MONO_METADATA_PROPERTY_BAG_H__
11
12 #include <mono/utils/mono-compiler.h>
13
14 typedef struct _MonoPropertyBagItem MonoPropertyBagItem;
15
16 struct _MonoPropertyBagItem {
17         MonoPropertyBagItem *next;
18         int tag;
19 };
20
21 typedef struct {
22         MonoPropertyBagItem *head;
23 } MonoPropertyBag;
24
25 void* mono_property_bag_get (MonoPropertyBag *bag, int tag);
26 void* mono_property_bag_add (MonoPropertyBag *bag, void *value);
27
28 #endif