00001 #ifndef HASHTABLE_H
00002 #define HASHTABLE_H
00003
00018 #include "vfml.h"
00019
00024 typedef struct {
00025 VoidListPtr *array;
00026 int size;
00027 } HashTable, *HashTablePtr;
00028
00030 HashTable *HashTableNew(int size);
00031
00033 void HashTableInsert(HashTable *table, int index, void *element);
00034
00042 void *HashTableFind(HashTable *table, int index,
00043 int (*cmp)(const void *, const int));
00044
00050 void HashTableFree(HashTable *table);
00051
00059 void *HashTableRemove(HashTable *table, int index,
00060 int (*cmp)(const void *, const int));
00061
00062 #endif