diff options
Diffstat (limited to 'libcnary/list.c')
| -rw-r--r-- | libcnary/list.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/libcnary/list.c b/libcnary/list.c deleted file mode 100644 index 2f05347..0000000 --- a/libcnary/list.c +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * list.c | ||
| 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 | #include <stdio.h> | ||
| 25 | #include <stdlib.h> | ||
| 26 | |||
| 27 | #include "list.h" | ||
| 28 | |||
| 29 | void list_init(list_t* list) { | ||
| 30 | list->next = NULL; | ||
| 31 | list->prev = list; | ||
| 32 | } | ||
| 33 | |||
| 34 | |||
| 35 | void list_destroy(list_t* list) { | ||
| 36 | if(list) { | ||
| 37 | free(list); | ||
| 38 | } | ||
| 39 | } | ||
| 40 | |||
| 41 | int list_add(list_t* list, object_t* object) { | ||
| 42 | return -1; | ||
| 43 | } | ||
| 44 | |||
| 45 | int list_remove(list_t* list, object_t* object) { | ||
| 46 | return -1; | ||
| 47 | } | ||
