mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
integrate local MP comm within the IPC module
This commit is contained in:
@ -33,14 +33,27 @@ enum
|
||||
|
||||
extern int InstanceID;
|
||||
|
||||
void Init();
|
||||
bool Init();
|
||||
bool InitSema();
|
||||
void DeInit();
|
||||
void DeInitSema();
|
||||
|
||||
void Process();
|
||||
void SetMPRecvTimeout(int timeout);
|
||||
void MPBegin();
|
||||
void MPEnd();
|
||||
|
||||
void ProcessCommands();
|
||||
bool SendCommand(u16 recipients, u16 command, u16 len, void* data);
|
||||
bool CommandReceived(u16 command);
|
||||
|
||||
int SendMPPacket(u8* data, int len, u64 timestamp);
|
||||
int RecvMPPacket(u8* data, u64* timestamp);
|
||||
int SendMPCmd(u8* data, int len, u64 timestamp);
|
||||
int SendMPReply(u8* data, int len, u64 timestamp, u16 aid);
|
||||
int SendMPAck(u8* data, int len, u64 timestamp);
|
||||
int RecvMPHostPacket(u8* data, u64* timestamp);
|
||||
u16 RecvMPReplies(u8* data, u64 timestamp, u16 aidmask);
|
||||
|
||||
}
|
||||
|
||||
#endif // IPC_H
|
||||
|
Reference in New Issue
Block a user