RetroArch
mylist.h
Go to the documentation of this file.
1 #ifndef __MYLIST_H__
2 #define __MYLIST_H__
3 
4 #include <stddef.h>
5 #include <boolean.h>
6 #include <retro_common_api.h>
7 
9 
10 typedef void* (*constructor_t)(void);
11 typedef void(*destructor_t)(void*);
12 
13 typedef struct MyList_t
14 {
15  void **data;
16  int capacity;
17  int size;
20 } MyList;
21 
22 void *mylist_add_element(MyList *list);
23 
24 void mylist_resize(MyList *list, int newSize, bool runConstructor);
25 
26 void mylist_create(MyList **list_p, int initialCapacity,
28 
29 void mylist_destroy(MyList **list_p);
30 
31 void mylist_assign(MyList *list, int index, void *value);
32 
33 void mylist_remove_at(MyList *list, int index);
34 
35 void mylist_pop_front(MyList *list);
36 
38 
39 #endif
40 
void mylist_remove_at(MyList *list, int index)
Definition: mylist.c:133
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
void mylist_destroy(MyList **list_p)
Definition: mylist.c:104
struct MyList_t MyList
void mylist_create(MyList **list_p, int initialCapacity, constructor_t constructor, destructor_t destructor)
Definition: mylist.c:74
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
destructor_t Destructor
Definition: mylist.h:19
static void constructor(LexState *ls, expdesc *t)
Definition: lparser.c:724
void mylist_resize(MyList *list, int newSize, bool runConstructor)
Definition: mylist.c:7
constructor_t Constructor
Definition: mylist.h:18
void ** data
Definition: mylist.h:15
void mylist_assign(MyList *list, int index, void *value)
Definition: mylist.c:121
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
GLuint index
Definition: glext.h:6671
int size
Definition: mylist.h:17
void mylist_pop_front(MyList *list)
Definition: mylist.c:149
void(* destructor_t)(void *)
Definition: mylist.h:11
RETRO_BEGIN_DECLS typedef void *(* constructor_t)(void)
Definition: mylist.h:10
GLsizei const GLfloat * value
Definition: glext.h:6709
void * mylist_add_element(MyList *list)
Definition: mylist.c:62
int capacity
Definition: mylist.h:16
Definition: mylist.h:13