[sre] Wrap mono_image_create_token with HANDLE_FUNCTION_{ENTER,RETURN}
[mono-project.git] / mono / metadata / mono-mlist.h
blobcfeeba39acb42c2382ac205d1b1ce9e32559dd83
1 /**
2 * \file
3 */
5 #ifndef __MONO_METADATA_MONO_MLIST_H__
6 #define __MONO_METADATA_MONO_MLIST_H__
8 /*
9 * mono-mlist.h: Managed object list implementation
12 #include <mono/metadata/object.h>
14 typedef struct _MonoMList MonoMList;
15 MONO_RT_EXTERNAL_ONLY
16 MONO_API MonoMList* mono_mlist_alloc (MonoObject *data);
17 MONO_API MonoObject* mono_mlist_get_data (MonoMList* list);
18 MONO_API void mono_mlist_set_data (MonoMList* list, MonoObject *data);
19 MONO_API MonoMList* mono_mlist_set_next (MonoMList* list, MonoMList *next);
20 MONO_API int mono_mlist_length (MonoMList* list);
21 MONO_API MonoMList* mono_mlist_next (MonoMList* list);
22 MONO_API MonoMList* mono_mlist_last (MonoMList* list);
23 MONO_RT_EXTERNAL_ONLY
24 MONO_API MonoMList* mono_mlist_prepend (MonoMList* list, MonoObject *data);
25 MONO_RT_EXTERNAL_ONLY
26 MONO_API MonoMList* mono_mlist_append (MonoMList* list, MonoObject *data);
28 MonoMList* mono_mlist_prepend_checked (MonoMList* list, MonoObject *data, MonoError *error);
29 MonoMList* mono_mlist_append_checked (MonoMList* list, MonoObject *data, MonoError *error);
31 MONO_API MonoMList* mono_mlist_remove_item (MonoMList* list, MonoMList *item);
33 #endif /* __MONO_METADATA_MONO_MLIST_H__ */