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