summaryrefslogtreecommitdiff
path: root/include/c/c_dylink.h
blob: 89ae109c20031de0dff3d0e226fc27e220ce7c9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef C_C_DYLINK_H
#define C_C_DYLINK_H

#include "dolphin/types.h"
#include "SSystem/SComponent/c_phase.h"

struct cDylPhs {
    static cPhs_State phase_01(void*);
    static cPhs_State phase_02(s16*);
    static cPhs_State phase_03(void*);
    static cPhs_State Link(request_of_phase_process_class*, s16);
    static BOOL Unlink(request_of_phase_process_class*, s16);
};

struct cDyl_DynamicName_t {
    /* 0x00 */ s16 mKey;
    /* 0x04 */ const char* name;
};  // Size: 0x08

BOOL cDyl_InitAsyncIsDone();
void cDyl_InitAsync();

BOOL cDyl_IsLinked(s16 i_procName);
BOOL cDyl_Unlink(s16 i_procName);
cPhs_State cDyl_LinkASync(s16 i_procName);

#endif /* C_C_DYLINK_H */