SSBM Decomp
Toggle main menu visibility
Loading...
Searching...
No Matches
id.h
Go to the documentation of this file.
1
#ifndef _id_h_
2
#define _id_h_
3
4
#include <
Runtime/platform.h
>
5
6
#include <
sysdolphin/baselib/objalloc.h
>
7
8
typedef
struct
_IDEntry {
9
struct
_IDEntry*
next
;
10
u32
id
;
11
void
*
data
;
12
}
IDEntry
;
13
14
typedef
struct
_HSD_IDTable {
15
struct
_IDEntry*
table
[101];
16
}
HSD_IDTable
;
17
18
HSD_ObjAllocData
*
HSD_IDGetAllocData
(
void
);
19
void
HSD_IDInitAllocData
(
void
);
20
void
HSD_IDSetup
(
void
);
21
void
HSD_IDInsertToTable
(
HSD_IDTable
*
table
,
u32
id
,
void
* data);
22
void
HSD_IDRemoveByIDFromTable
(
HSD_IDTable
*
table
,
u32
id
);
23
void
*
HSD_IDGetDataFromTable
(
HSD_IDTable
*
table
,
u32
id
,
s32
*
success
);
24
void
_HSD_IDForgetMemory
(
void
* low,
void
* high);
25
26
static
inline
void
*
HSD_IDGetData
(
u32
id
,
s32
*
success
)
27
{
28
return
HSD_IDGetDataFromTable
(
NULL
,
id
,
success
);
29
}
30
31
#endif
u32
unsigned long u32
Definition
types.h:9
s32
signed long s32
Definition
types.h:8
table
static grZe_ColorEntry table[3]
Definition
grzebes.c:1134
_HSD_IDForgetMemory
void _HSD_IDForgetMemory(void *low, void *high)
Definition
id.c:124
HSD_IDGetAllocData
HSD_ObjAllocData * HSD_IDGetAllocData(void)
Definition
id.c:11
HSD_IDInitAllocData
void HSD_IDInitAllocData(void)
Definition
id.c:16
HSD_IDGetDataFromTable
void * HSD_IDGetDataFromTable(HSD_IDTable *table, u32 id, s32 *success)
Definition
id.c:99
HSD_IDSetup
void HSD_IDSetup(void)
Definition
id.c:21
HSD_IDRemoveByIDFromTable
void HSD_IDRemoveByIDFromTable(HSD_IDTable *table, u32 id)
Definition
id.c:75
HSD_IDGetData
static void * HSD_IDGetData(u32 id, s32 *success)
Definition
id.h:26
HSD_IDInsertToTable
void HSD_IDInsertToTable(HSD_IDTable *table, u32 id, void *data)
Definition
id.c:42
objalloc.h
platform.h
NULL
#define NULL
Definition
stddef.h:14
success
#define success(scan_state)
Definition
strtoul.c:20
HSD_IDTable
Definition
id.h:14
HSD_IDTable::table
struct _IDEntry * table[101]
Definition
id.h:15
HSD_ObjAllocData
Definition
objalloc.h:19
IDEntry
Definition
id.h:8
IDEntry::data
void * data
Definition
id.h:11
IDEntry::id
u32 id
Definition
id.h:10
IDEntry::next
struct _IDEntry * next
Definition
id.h:9
src
sysdolphin
baselib
id.h
Generated by
1.17.0