all repos — mgba @ 05b3f64f40595b57eb51d0ce22db2aa5107f7161

mGBA Game Boy Advance Emulator

src/util/table.h (view raw)

 1#ifndef TABLE_H
 2#define TABLE_H
 3
 4#include "util/common.h"
 5
 6struct TableList;
 7
 8struct Table {
 9	struct TableList* table;
10	size_t tableSize;
11};
12
13void TableInit(struct Table*, size_t initialSize);
14void TableDeinit(struct Table*);
15
16void* TableLookup(struct Table*, uint32_t key);
17void TableInsert(struct Table*, uint32_t key, void* value);
18
19#endif