summaryrefslogtreecommitdiff
path: root/src/base/index.h
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-13 13:54:09 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-13 13:54:09 +0000
commit5b67651831ad9b160b41990288c938c7a05c1db1 (patch)
tree6380e378eae351d40abe85b66aed40f5c88f2951 /src/base/index.h
parent54d61c622ba721b4ea57852e0ba6c87acfa66a2b (diff)
- upravene indexovanie v index.c a space.c ktore indexovanie pouziva
git-svn-id: http://opensvn.csie.org/tuxanci_ng@194 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/index.h')
-rw-r--r--src/base/index.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/base/index.h b/src/base/index.h
index 3799aa3..0dd544c 100644
--- a/src/base/index.h
+++ b/src/base/index.h
@@ -6,10 +6,19 @@
#include "main.h"
#include "list.h"
+typedef struct index_item_struct
+{
+ int key;
+ void *data;
+} index_item_t;
+
extern list_t* newIndex();
-extern int addToIndex(list_t *list, int index);
-extern int getFormIndex(list_t *list, int index);
-extern void delFromIndex(list_t *list, int index);
+extern void addToIndex(list_t *list, int key, void *data);
+extern void* getFromIndex(list_t *list, int key);
+extern void delFromIndex(list_t *list, int key);
+extern void delFromIndexWithObject(list_t *list, int key, void *f);
+extern void actionIndexWithObject(list_t *list, void *f);
extern void destroyIndex(list_t *list);
+extern void destroyIndexWithObject(list_t *list, void *f);
#endif