Import SDK Types
This commit is contained in:
parent
84b3e69630
commit
4fe4c38e0d
86 changed files with 6528 additions and 27 deletions
34
include/dolphin/os/OSMessage.h
Normal file
34
include/dolphin/os/OSMessage.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#ifndef _DOLPHIN_OSMESSAGE
|
||||
#define _DOLPHIN_OSMESSAGE
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <dolphin/os/OSThread.h>
|
||||
typedef struct OSMessageQueue OSMessageQueue;
|
||||
typedef void* OSMessage;
|
||||
|
||||
struct OSMessageQueue {
|
||||
OSThreadQueue queueSend;
|
||||
OSThreadQueue queueReceive;
|
||||
OSMessage* msgArray;
|
||||
s32 msgCount;
|
||||
s32 firstIndex;
|
||||
s32 usedCount;
|
||||
};
|
||||
|
||||
// Flags to turn blocking on/off when sending/receiving message
|
||||
#define OS_MESSAGE_NOBLOCK 0
|
||||
#define OS_MESSAGE_BLOCK 1
|
||||
|
||||
void OSInitMessageQueue(OSMessageQueue* mq, OSMessage* msgArray, s32 msgCount);
|
||||
BOOL OSSendMessage(OSMessageQueue* mq, OSMessage msg, s32 flags);
|
||||
BOOL OSJamMessage(OSMessageQueue* mq, OSMessage msg, s32 flags);
|
||||
BOOL OSReceiveMessage(OSMessageQueue* mq, OSMessage* msg, s32 flags);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // _DOLPHIN_OSMESSAGE
|
||||
Loading…
Add table
Add a link
Reference in a new issue