diff options
Diffstat (limited to 'libcnary/list.c')
| -rw-r--r-- | libcnary/list.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libcnary/list.c b/libcnary/list.c new file mode 100644 index 0000000..b98cde8 --- /dev/null +++ b/libcnary/list.c | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* | ||
| 2 | * list.c | ||
| 3 | * | ||
| 4 | * Created on: Mar 8, 2011 | ||
| 5 | * Author: posixninja | ||
| 6 | */ | ||
| 7 | |||
| 8 | #include <stdio.h> | ||
| 9 | #include <stdlib.h> | ||
| 10 | |||
| 11 | #include "list.h" | ||
| 12 | |||
| 13 | void list_init(list_t* list) { | ||
| 14 | list->next = NULL; | ||
| 15 | list->prev = list; | ||
| 16 | } | ||
| 17 | |||
| 18 | |||
| 19 | void list_destroy(list_t* list) { | ||
| 20 | if(list) { | ||
| 21 | free(list); | ||
| 22 | } | ||
| 23 | } | ||
| 24 | |||
| 25 | int list_add(list_t* list, object_t* object) { | ||
| 26 | return -1; | ||
| 27 | } | ||
| 28 | |||
| 29 | int list_remove(list_t* list, object_t* object) { | ||
| 30 | return -1; | ||
| 31 | } | ||
