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 @@ +/* + * list.c + * + * Created on: Mar 8, 2011 + * Author: posixninja + */ + +#include <stdio.h> +#include <stdlib.h> + +#include "list.h" + +void list_init(list_t* list) { + list->next = NULL; + list->prev = list; +} + + +void list_destroy(list_t* list) { + if(list) { + free(list); + } +} + +int list_add(list_t* list, object_t* object) { + return -1; +} + +int list_remove(list_t* list, object_t* object) { + return -1; +} |