diff options
Diffstat (limited to 'libcnary/include/list.h')
| -rw-r--r-- | libcnary/include/list.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/libcnary/include/list.h b/libcnary/include/list.h deleted file mode 100644 index 6b18e6f..0000000 --- a/libcnary/include/list.h +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * list.h | ||
| 3 | * | ||
| 4 | * Created on: Mar 8, 2011 | ||
| 5 | * Author: posixninja | ||
| 6 | * | ||
| 7 | * Copyright (c) 2011 Joshua Hill. All Rights Reserved. | ||
| 8 | * | ||
| 9 | * This library is free software; you can redistribute it and/or | ||
| 10 | * modify it under the terms of the GNU Lesser General Public | ||
| 11 | * License as published by the Free Software Foundation; either | ||
| 12 | * version 2.1 of the License, or (at your option) any later version. | ||
| 13 | * | ||
| 14 | * This library is distributed in the hope that it will be useful, | ||
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 17 | * Lesser General Public License for more details. | ||
| 18 | * | ||
| 19 | * You should have received a copy of the GNU Lesser General Public | ||
| 20 | * License along with this library; if not, write to the Free Software | ||
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 22 | */ | ||
| 23 | |||
| 24 | #ifndef LIST_H_ | ||
| 25 | #define LIST_H_ | ||
| 26 | |||
| 27 | #include "object.h" | ||
| 28 | |||
| 29 | typedef struct list_t { | ||
| 30 | void* next; | ||
| 31 | void* prev; | ||
| 32 | } list_t; | ||
| 33 | |||
| 34 | void list_init(struct list_t* list); | ||
| 35 | void list_destroy(struct list_t* list); | ||
| 36 | |||
| 37 | int list_add(struct list_t* list, struct object_t* object); | ||
| 38 | int list_remove(struct list_t* list, struct object_t* object); | ||
| 39 | |||
| 40 | #endif /* LIST_H_ */ | ||
