From 55233c4949d7bed70345f6fea44315df151d9ba5 Mon Sep 17 00:00:00 2001 From: oroborus Date: Sun, 29 Jun 2008 13:52:14 +0000 Subject: - oprava chyby, vestok objetovy kod ktory sa linkoval do modulov nebol skompilovanay s -fPIC git-svn-id: http://opensvn.csie.org/tuxanci_ng@79 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/modules/list.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 src/modules/list.h (limited to 'src/modules/list.h') diff --git a/src/modules/list.h b/src/modules/list.h new file mode 100755 index 0000000..17a8e2d --- /dev/null +++ b/src/modules/list.h @@ -0,0 +1,33 @@ + +#ifndef LIST_H + +#define LIST_H + +#include "base/main.h" + +#define LIST_ALLOC_LIMIT 16 + +typedef struct list_str +{ + void **list; + int count; + int alloc; +} list_t; + +extern list_t* newList(); +extern list_t* cloneList(list_t *p); +extern list_t* cloneListItem(list_t *p, void *f); + +extern void addList(list_t *p, void *item); +extern void insList(list_t *p, int n, void *item); +extern void *getList(list_t *p,int n); +extern int searchListItem(list_t *p, void *n); + +extern void delList(list_t *p,int n); +extern void delListItem(list_t *p,int n,void *f); +extern void listDoEmpty(list_t *p); + +extern void destroyList(list_t *p); +extern void destroyListItem(list_t *p,void *f); + +#endif -- cgit v1.2.3