diff options
Diffstat (limited to 'libraries/eina/src/include/eina_lalloc.h')
-rw-r--r-- | libraries/eina/src/include/eina_lalloc.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/libraries/eina/src/include/eina_lalloc.h b/libraries/eina/src/include/eina_lalloc.h deleted file mode 100644 index dcb8773..0000000 --- a/libraries/eina/src/include/eina_lalloc.h +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | /* EINA - EFL data type library | ||
2 | * Copyright (C) 2007-2008 Jorge Luis Zapata Muga | ||
3 | * | ||
4 | * This library is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU Lesser General Public | ||
6 | * License as published by the Free Software Foundation; either | ||
7 | * version 2.1 of the License, or (at your option) any later version. | ||
8 | * | ||
9 | * This library is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | * Lesser General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public | ||
15 | * License along with this library; | ||
16 | * if not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #ifndef EINA_LALLOC_H_ | ||
20 | #define EINA_LALLOC_H_ | ||
21 | |||
22 | #include "eina_types.h" | ||
23 | |||
24 | /** | ||
25 | * @addtogroup Eina_Tools_Group Tools | ||
26 | * | ||
27 | * @{ | ||
28 | */ | ||
29 | |||
30 | /** | ||
31 | * @defgroup Eina_Lalloc_Group Lazy allocator | ||
32 | * | ||
33 | * @{ | ||
34 | */ | ||
35 | |||
36 | typedef Eina_Bool (*Eina_Lalloc_Alloc)(void *user_data, int num); | ||
37 | #define EINA_LALLOC_ALLOC(function) ((Eina_Lalloc_Alloc)function) | ||
38 | typedef void (*Eina_Lalloc_Free)(void *user_data); | ||
39 | #define EINA_LALLOC_FREE(function) ((Eina_Lalloc_Free)function) | ||
40 | |||
41 | typedef struct _Eina_Lalloc Eina_Lalloc; | ||
42 | |||
43 | EAPI Eina_Lalloc *eina_lalloc_new(void *data, | ||
44 | Eina_Lalloc_Alloc alloc_cb, | ||
45 | Eina_Lalloc_Free free_cb, | ||
46 | int num_init) EINA_ARG_NONNULL(2, 3); | ||
47 | EAPI void eina_lalloc_free(Eina_Lalloc *a) EINA_ARG_NONNULL(1); | ||
48 | EAPI Eina_Bool eina_lalloc_elements_add(Eina_Lalloc *a, | ||
49 | int num) EINA_ARG_NONNULL(1); | ||
50 | EAPI Eina_Bool eina_lalloc_element_add(Eina_Lalloc *a) EINA_ARG_NONNULL(1); | ||
51 | |||
52 | /** | ||
53 | * @} | ||
54 | */ | ||
55 | |||
56 | /** | ||
57 | * @} | ||
58 | */ | ||
59 | |||
60 | #endif /* EINA_LALLOC_H_ */ | ||