5 #ifndef __MONO_METADATA_MONO_MLIST_H__
6 #define __MONO_METADATA_MONO_MLIST_H__
9 * mono-mlist.h: Managed object list implementation
12 #include <mono/metadata/object.h>
14 typedef struct _MonoMList MonoMList
;
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
);
24 MONO_API MonoMList
* mono_mlist_prepend (MonoMList
* list
, MonoObject
*data
);
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__ */