diff options
Diffstat (limited to 'libraries/eina/src/include/eina_inline_list.x')
-rw-r--r-- | libraries/eina/src/include/eina_inline_list.x | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/libraries/eina/src/include/eina_inline_list.x b/libraries/eina/src/include/eina_inline_list.x deleted file mode 100644 index 3397a1b..0000000 --- a/libraries/eina/src/include/eina_inline_list.x +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | /* EINA - EFL data type library | ||
2 | * Copyright (C) 2002-2008 Carsten Haitzler, Vincent Torri, 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_LIST_INLINE_H_ | ||
20 | #define EINA_LIST_INLINE_H_ | ||
21 | |||
22 | static inline Eina_List * | ||
23 | eina_list_last(const Eina_List *list) | ||
24 | { | ||
25 | if (!list) return NULL; | ||
26 | return list->accounting->last; | ||
27 | } | ||
28 | |||
29 | static inline Eina_List * | ||
30 | eina_list_next(const Eina_List *list) | ||
31 | { | ||
32 | if (!list) return NULL; | ||
33 | return list->next; | ||
34 | } | ||
35 | |||
36 | static inline Eina_List * | ||
37 | eina_list_prev(const Eina_List *list) | ||
38 | { | ||
39 | if (!list) return NULL; | ||
40 | return list->prev; | ||
41 | } | ||
42 | |||
43 | static inline void * | ||
44 | eina_list_data_get(const Eina_List *list) | ||
45 | { | ||
46 | if (!list) return NULL; | ||
47 | return list->data; | ||
48 | } | ||
49 | |||
50 | static inline void * | ||
51 | eina_list_data_set(Eina_List *list, const void *data) | ||
52 | { | ||
53 | void *tmp; | ||
54 | if (!list) return NULL; | ||
55 | tmp = list->data; | ||
56 | list->data = (void*) data; | ||
57 | return tmp; | ||
58 | } | ||
59 | |||
60 | static inline unsigned int | ||
61 | eina_list_count(const Eina_List *list) | ||
62 | { | ||
63 | if (!list) return 0; | ||
64 | return list->accounting->count; | ||
65 | } | ||
66 | |||
67 | #endif /* EINA_LIST_INLINE_H_ */ | ||