mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-11 03:39:59 +00:00
31 lines
570 B
C
31 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
|