summaryrefslogtreecommitdiff
path: root/arm9/src/unk_0208A300.c
blob: 3c4a496b7ec082e9aa065c3de6b991ff5e7ab073 (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
28
29
30
31
32
33
34
35
36
37
38
#include "global.h"
#include "heap.h"
#include "unk_0208A300.h"

THUMB_FUNC struct UnkStruct_0208A300* FUN_0208A300(u32 heap_id)
{
    struct UnkStruct_0208A300* ret = AllocFromHeap(heap_id, sizeof(struct UnkStruct_0208A300));

    __builtin__clear(ret, sizeof(struct UnkStruct_0208A300));
    ret->unk4 = 2;

    return ret;
}

THUMB_FUNC void FUN_0208A320(struct UnkStruct_0208A300* unk)
{
    FreeToHeap(unk);
}

THUMB_FUNC u32 FUN_0208A328(struct UnkStruct_0208A300* unk)
{
    return unk->unk0;
}

THUMB_FUNC void FUN_0208A32C(struct UnkStruct_0208A300* unk, u32 a1)
{
    unk->unk0 = a1;
}

THUMB_FUNC u32 FUN_0208A330(struct UnkStruct_0208A300* unk)
{
    return unk->unk4;
}

THUMB_FUNC void FUN_0208A334(struct UnkStruct_0208A300* unk, u32 a1)
{
    unk->unk4 = a1;
}