diff options
author | Nikias Bassen | 2011-06-13 18:30:37 +0200 |
---|---|---|
committer | Nikias Bassen | 2011-06-13 18:30:37 +0200 |
commit | c7412d4813ccb994fdd219f421eaba8bb37831dd (patch) | |
tree | 5b7f3016ceb337b31afdd62c9fee646f33e8b271 /libcnary/list.c | |
parent | 3277a11f0beedda8b5d65ffccb05fabd4e8ded28 (diff) | |
download | libplist-c7412d4813ccb994fdd219f421eaba8bb37831dd.tar.gz libplist-c7412d4813ccb994fdd219f421eaba8bb37831dd.tar.bz2 |
Bundle libcnary for better packaging1.5
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; +} |