Files
dusklight/include/dolphin/charPipeline/structures/HTable.h
T
TakaRikka eda175afc8 copy dolsdk2004 to tp / b_bh + e_mb done (#2299)
* move dolsdk2004 over

* cleanup some temp work

* finish and cleanup gf

* b_bh done

* d_a_e_mb done
2025-02-10 21:20:42 +02:00

30 lines
712 B
C

#ifndef _CHARPIPELINE_STRUCTURES_HTABLE_H_
#define _CHARPIPELINE_STRUCTURES_HTABLE_H_
#include <charPipeline/structures/List.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef u16 (DSHashFunc)(Ptr);
typedef struct {
DSList* table;
u16 tableSize;
DSHashFunc* hash;
} DSHashTable;
void DSInitHTable(DSHashTable* hTable, u16 size, DSList* listArray, DSHashFunc* hashFunc, Ptr obj, DSLinkPtr link);
void DSInsertHTableObj(DSHashTable* hTable, Ptr obj);
void DSHTableToList(DSHashTable* hTable, DSList* list);
void* DSNextHTableObj(DSHashTable* hTable, Ptr obj);
s32 DSHTableIndex(DSHashTable* hTable, Ptr obj);
void* DSHTableHead(DSHashTable* hTable, s32 index);
#ifdef __cplusplus
}
#endif
#endif