blob: fa5eea6d79d4b304d5fae1c2822a5663ae071496 (
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
|
/**
* c_request.cpp
*
*/
#include "SSystem/SComponent/c_request.h"
int cReq_Is_Done(request_base_class* i_this) {
if (i_this->flag1 == 1) {
i_this->flag1 = 0;
return 1;
}
return 0;
}
void cReq_Done(request_base_class* i_this) {
i_this->flag0 = 0;
i_this->flag1 = 1;
i_this->flag2 = 0;
}
void cReq_Command(request_base_class* i_this, u8 param_1) {
cReq_Create(i_this, param_1);
}
void cReq_Create(request_base_class* i_this, u8 param_1) {
i_this->flag0 = 1;
i_this->flag1 = 0;
i_this->flag2 = param_1;
}
|