summaryrefslogtreecommitdiff
path: root/include/hashtable.h
diff options
context:
space:
mode:
authorMax <mparisi@stevens.edu>2020-09-16 21:22:50 -0400
committerMax <mparisi@stevens.edu>2020-09-16 21:22:50 -0400
commitea73b61cea2b6e50e0079042eae1185a726e2273 (patch)
treeb2c11e196725da12bc23e976edd8c857ae1b97c1 /include/hashtable.h
parent88cdd94339cc0307dac9f2a9e30465d6f4c203d2 (diff)
rough decomp
Diffstat (limited to 'include/hashtable.h')
-rw-r--r--include/hashtable.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/hashtable.h b/include/hashtable.h
index 79acbf6..784ab35 100644
--- a/include/hashtable.h
+++ b/include/hashtable.h
@@ -12,20 +12,20 @@ typedef s32 (*HashFunction)(void *, s32);
typedef struct HashTable {
DArray **chains;
s32 size;
- s32 unk8;
+ DtorFunction dtor;
HashFunction hashFunc;
- s32 unk10; // comparison callback?
+ CompareFunction compar;
} HashTable;
-HashTable *TableNew(u32 p1, s32 p2, HashFunction hf, s32 p4, s32 p5);
-HashTable *TableNew2(u32 p1, s32 size, s32 p3, HashFunction hf, s32 p5, s32 p6);
+HashTable *TableNew(u32 p1, s32 p2, HashFunction hf, CompareFunction cmp, DtorFunction dtor);
+HashTable *TableNew2(u32 p1, s32 size, s32 p3, HashFunction hf, CompareFunction cmp, DtorFunction dtor);
void TableFree(HashTable *table);
s32 TableCount(HashTable *table);
void TableEnter(HashTable *table, void *elem);
BOOL TableRemove(HashTable *table, void *elem);
void *TableLookup(HashTable *table, void *elem);
-void TableMapSafe(HashTable *table, s32 p2, s32 p3);
-void *TableMapSafe2(HashTable *table, s32 p2, s32 p3);
+void TableMapSafe(HashTable *table, MapFunction p2, s32 p3);
+void *TableMapSafe2(HashTable *table, MapFunction p2, s32 p3);
#ifdef __cplusplus
}