Add missing headers

This commit is contained in:
Cuyler36
2023-04-29 08:21:36 -04:00
parent aad0bc2f09
commit d099c2d387
4 changed files with 33 additions and 7 deletions
+8 -3
View File
@@ -3,16 +3,21 @@
#include "types.h"
#include "dolphin/os/OSThread.h"
#include "dolphin/os/OSMessage.h"
typedef void* OSMesg;
typedef struct OSMesgQueue {
/* 0x00 */ OSThread* mtqueue;
/* 0x04 */ OSThread* fullqueue;
/* 0x08 */ s32 validCount;
/* 0x0C */ s32 first;
/* 0x10 */ s32 msgCount;
/* 0x08 */ int validCount;
/* 0x0C */ int first;
/* 0x10 */ int msgCount;
/* 0x14 */ OSMesg* msg;
} OSMesgQueue; // size = 0x18
extern void osCreateMesgQueue(OSMessageQueue* mq ,OSMessage msg, int flags);
extern int osSendMesg(OSMessageQueue* mq, OSMessage msg, int flags);
extern int osRecvMesg(OSMessageQueue* mq, OSMessage msg, int flags);
#endif
+18
View File
@@ -0,0 +1,18 @@
#ifndef LIBULTRA_OS_TIMER_H
#define LIBULTRA_OS_TIMER_H
#include "types.h"
#include "dolphin/os/OSTimer.h"
#include "dolphin/os/OSMessage.h"
#ifdef __cplusplus
extern "C" {
#endif
extern int osSetTimer(OSTimer* t, OSTime countdown, OSTime interval, OSMessageQueue* mq, OSMessage msg);
#ifdef __cplusplus
}
#endif
#endif