From c7412d4813ccb994fdd219f421eaba8bb37831dd Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 13 Jun 2011 18:30:37 +0200 Subject: Bundle libcnary for better packaging --- libcnary/list.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libcnary/list.c (limited to 'libcnary/list.c') 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 +#include + +#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; +} -- cgit v1.1-32-gdbae