JASCmdStack

This commit is contained in:
Jcw87
2023-10-22 13:48:03 -07:00
parent c31675d24b
commit 73a595b83c
3 changed files with 123 additions and 20 deletions
+38
View File
@@ -0,0 +1,38 @@
#ifndef JASCMDSTACK_H
#define JASCMDSTACK_H
#include "dolphin/types.h"
namespace JASystem {
namespace Kernel {
class TPortArgs;
class TPortCmd;
class TPortHead {
public:
/* 0x00 */ TPortCmd* field_0x0;
/* 0x04 */ TPortCmd* field_0x4;
};
class TPortCmd {
public:
TPortCmd();
bool addPortCmdOnce();
bool setPortCmd(void (*)(TPortArgs*), TPortArgs*);
bool addPortCmd(TPortHead*);
/* 0x00 */ TPortHead* field_0x0;
/* 0x04 */ TPortCmd* field_0x4;
/* 0x08 */ void (*field_0x8)(TPortArgs*);
/* 0x0C */ TPortArgs* field_0xc;
};
void portCmdProcOnce(TPortHead*);
void portCmdProcStay(TPortHead*);
void portHeadInit(TPortHead*);
void portCmdInit();
TPortCmd* getPortCmd(TPortHead*);
s32 portCmdMain(void*);
}
}
#endif /* JASCMDSTACK_H */