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/forward.h
>
7
8
#include <
sysdolphin/baselib/objalloc.h
>
9
10
typedef
struct
_IDEntry {
11
struct
_IDEntry*
next
;
12
HSD_IDKey
id
;
13
void
*
data
;
14
}
IDEntry
;
15
16
typedef
struct
_HSD_IDTable {
17
struct
_IDEntry*
table
[101];
18
}
HSD_IDTable
;
19
20
HSD_ObjAllocData
*
HSD_IDGetAllocData
(
void
);
21
void
HSD_IDInitAllocData
(
void
);
22
void
HSD_IDSetup
(
void
);
23
void
HSD_IDInsertToTable
(
HSD_IDTable
*
table
,
HSD_IDKey
id
,
void
* data);
24
void
HSD_IDRemoveByIDFromTable
(
HSD_IDTable
*
table
,
HSD_IDKey
id
);
25
void
*
HSD_IDGetDataFromTable
(
HSD_IDTable
*
table
,
HSD_IDKey
id
,
s32
*
success
);
26
void
_HSD_IDForgetMemory
(
void
* low,
void
* high);
27
28
static
inline
void
*
HSD_IDGetData
(
HSD_IDKey
id
,
s32
*
success
)
29
{
30
return
HSD_IDGetDataFromTable
(
NULL
,
id
,
success
);
31
}
32
33
#endif
table
static grZe_ColorEntry table[3]
Definition
grzebes.c:1074
_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_IDInsertToTable
void HSD_IDInsertToTable(HSD_IDTable *table, HSD_IDKey id, void *data)
Definition
id.c:42
HSD_IDInitAllocData
void HSD_IDInitAllocData(void)
Definition
id.c:16
HSD_IDRemoveByIDFromTable
void HSD_IDRemoveByIDFromTable(HSD_IDTable *table, HSD_IDKey id)
Definition
id.c:75
HSD_IDGetData
static void * HSD_IDGetData(HSD_IDKey id, s32 *success)
Definition
id.h:28
HSD_IDSetup
void HSD_IDSetup(void)
Definition
id.c:21
HSD_IDGetDataFromTable
void * HSD_IDGetDataFromTable(HSD_IDTable *table, HSD_IDKey id, s32 *success)
Definition
id.c:99
s32
signed int s32
Definition
types.h:12
objalloc.h
platform.h
NULL
#define NULL
Definition
stddef.h:19
success
#define success(scan_state)
Definition
strtoul.c:21
HSD_IDTable
Definition
id.h:16
HSD_IDTable::table
struct _IDEntry * table[101]
Definition
id.h:17
HSD_ObjAllocData
Definition
objalloc.h:19
IDEntry
Definition
id.h:10
IDEntry::id
HSD_IDKey id
Definition
id.h:12
IDEntry::data
void * data
Definition
id.h:13
IDEntry::next
struct _IDEntry * next
Definition
id.h:11
forward.h
HSD_IDKey
uintptr_t HSD_IDKey
Definition
forward.h:107
src
sysdolphin
baselib
id.h
Generated by
1.17.0