mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-27 07:07:09 +00:00
32 lines
570 B
C
32 lines
570 B
C
|
#ifndef _ULTRA64_MESSAGE_H_
|
||
|
#define _ULTRA64_MESSAGE_H_
|
||
|
|
||
|
/* Message Blocking Flags */
|
||
|
|
||
|
#define OS_MESG_NOBLOCK 0
|
||
|
#define OS_MESG_BLOCK 1
|
||
|
|
||
|
/* Types */
|
||
|
|
||
|
typedef void *OSMesg;
|
||
|
|
||
|
typedef struct OSMesgQueue_s
|
||
|
{
|
||
|
OSThread *mtqueue;
|
||
|
OSThread *fullqueue;
|
||
|
s32 validCount;
|
||
|
s32 first;
|
||
|
s32 msgCount;
|
||
|
OSMesg *msg;
|
||
|
} OSMesgQueue;
|
||
|
|
||
|
|
||
|
/* Functions */
|
||
|
|
||
|
void osCreateMesgQueue(OSMesgQueue *, OSMesg *, s32);
|
||
|
s32 osSendMesg(OSMesgQueue *, OSMesg, s32);
|
||
|
s32 osJamMesg(OSMesgQueue *, OSMesg, s32);
|
||
|
s32 osRecvMesg(OSMesgQueue *, OSMesg *, s32);
|
||
|
|
||
|
#endif
|