link nubevent.c

This commit is contained in:
Prakxo
2023-06-18 18:23:39 +02:00
parent 70ed8569f3
commit 03eeef86bc
6 changed files with 101 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@ typedef struct MessageBuffer {
} MessageBuffer;
MessageBuffer* TRKGetBuffer(int);
void TRKReleaseBuffer(int);
#ifdef __cplusplus
}
+18
View File
@@ -0,0 +1,18 @@
#ifndef TRK_MUTEX_TRK
#define TRK_MUTEX_TRK
#include "types.h"
#include "TRK/trk.h"
#ifdef __cplusplus
extern "C" {
#endif
TRKResult TRKAcquireMutex(void*);
TRKResult TRKReleaseMutex(void*);
TRKResult TRKInitializeMutex(void*);
#ifdef __cplusplus
}
#endif
#endif
+12
View File
@@ -6,7 +6,19 @@
extern "C" {
#endif
typedef struct TRKEventQueue{
int unk0;
int mCurrEvtID;
int mNextSlotToOverwrite;
TRKEvent mEvents[2];
u32 mMax;
}TRKEventQueue;
TRKResult TRKInitializeEventQueue();
BOOL TRKGetNextEvent(TRKEvent*);
TRKResult TRKPostEvent(TRKEvent*);
void TRKConstructEvent(TRKEvent*, int);
void TRKDestructEvent(TRKEvent*);
#ifdef __cplusplus