1 |
/* list.c */ |
/* |
2 |
|
list.h |
3 |
|
|
4 |
|
This file is part of GNU Anubis. |
5 |
|
Copyright (C) 2003 The Anubis Team. |
6 |
|
|
7 |
|
GNU Anubis is free software; you can redistribute it and/or modify |
8 |
|
it under the terms of the GNU General Public License as published by |
9 |
|
the Free Software Foundation; either version 2 of the License, or |
10 |
|
(at your option) any later version. |
11 |
|
|
12 |
|
GNU Anubis is distributed in the hope that it will be useful, |
13 |
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
|
GNU General Public License for more details. |
16 |
|
|
17 |
|
You should have received a copy of the GNU General Public License |
18 |
|
along with GNU Anubis; if not, write to the Free Software |
19 |
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 |
|
|
21 |
|
GNU Anubis is released under the GPL with the additional exemption that |
22 |
|
compiling, linking, and/or using OpenSSL is allowed. |
23 |
|
*/ |
24 |
|
|
25 |
struct list; |
struct list; |
26 |
|
|
27 |
typedef int (*list_iterator_t)(void *item, void *data); |
typedef int (*list_iterator_t)(void *item, void *data); |
40 |
void *list_remove_current(struct list *list); |
void *list_remove_current(struct list *list); |
41 |
void *list_remove(struct list *list, void *data, list_comp_t cmp); |
void *list_remove(struct list *list, void *data, list_comp_t cmp); |
42 |
void list_append_list(struct list *a, struct list *b); |
void list_append_list(struct list *a, struct list *b); |
43 |
|
|
44 |
|
/* EOF */ |
45 |
|
|