mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-23 14:41:38 -04:00
link nubevent.c
This commit is contained in:
@@ -15,6 +15,7 @@ typedef struct MessageBuffer {
|
||||
} MessageBuffer;
|
||||
|
||||
MessageBuffer* TRKGetBuffer(int);
|
||||
void TRKReleaseBuffer(int);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user