diff options
Diffstat (limited to 'libraries/eina/src/tests/evas_mempool.h')
-rw-r--r-- | libraries/eina/src/tests/evas_mempool.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libraries/eina/src/tests/evas_mempool.h b/libraries/eina/src/tests/evas_mempool.h new file mode 100644 index 0000000..983c434 --- /dev/null +++ b/libraries/eina/src/tests/evas_mempool.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef _EVAS_MEMPOOL_H | ||
2 | #define _EVAS_MEMPOOL_H | ||
3 | |||
4 | |||
5 | typedef struct _Evas_Mempool Evas_Mempool; | ||
6 | |||
7 | struct _Evas_Mempool | ||
8 | { | ||
9 | int item_size; | ||
10 | int pool_size; | ||
11 | int usage; | ||
12 | void *first, *last; | ||
13 | }; | ||
14 | |||
15 | |||
16 | void *evas_mempool_malloc(Evas_Mempool *pool, int size); | ||
17 | void evas_mempool_free(Evas_Mempool *pool, void *ptr); | ||
18 | void *evas_mempool_calloc(Evas_Mempool *pool, int size); | ||
19 | |||
20 | |||
21 | #endif /* _EVAS_MEMPOOL_H */ | ||