4 * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
25 typedef Eina_List c_list;
26 #define C_LIST_PREPEND(a, b) \
27 a = eina_list_prepend(a, b)
28 #define C_LIST_APPEND(a, b) \
29 a = eina_list_append(a, b)
30 #define C_LIST_REMOVE(a, b) \
31 a = eina_list_remove(a, b)
32 #define C_LIST_LENGTH(a) \
34 #define C_LIST_NTH(a, b) \
36 #define C_LIST_FREE_LIST(a) \
38 #define C_LIST_FOREACH(head, elem, node) \
39 EINA_LIST_FOREACH(head, elem, node)
43 #define C_LIST_PREPEND(a, b) \
44 a = g_list_prepend(a, (gpointer)b)
45 #define C_LIST_APPEND(a, b) \
46 a = g_list_append(a, (gpointer)b)
47 #define C_LIST_REMOVE(a, b) \
48 a = g_list_remove(a, (gpointer)b)
49 #define C_LIST_LENGTH(a) \
51 #define C_LIST_NTH(a, b) \
53 #define C_LIST_FREE_LIST(a) \
55 #define C_LIST_FOREACH(head, elem, node) \
56 for (elem = head, node = NULL; elem && ((node = elem->data) != NULL); elem = elem->next, node = NULL)