mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-07 02:10:14 -04:00
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
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user