* Match mtx and Padclamp.c * Match the rest of GX * Import TRK 2.6 * Import MSL headers and files * Merge some MSL headers into ours
37 lines
723 B
C
37 lines
723 B
C
#ifndef METROTRK_PORTABLE_NUBEVENT_H
|
|
#define METROTRK_PORTABLE_NUBEVENT_H
|
|
|
|
#include "PowerPC_EABI_Support/MetroTRK/trk.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef u32 NubEventID;
|
|
|
|
typedef struct TRKEvent {
|
|
NubEventType eventType;
|
|
NubEventID eventID;
|
|
MessageBufferID msgBufID;
|
|
} TRKEvent;
|
|
|
|
typedef struct TRKEventQueue {
|
|
int _00;
|
|
int count;
|
|
int next;
|
|
TRKEvent events[2];
|
|
NubEventID eventID;
|
|
} TRKEventQueue;
|
|
extern TRKEventQueue gTRKEventQueue;
|
|
|
|
BOOL TRKGetNextEvent(TRKEvent* event);
|
|
void TRKDestructEvent(TRKEvent*);
|
|
void TRKConstructEvent(TRKEvent*, NubEventType);
|
|
DSError TRKPostEvent(TRKEvent*);
|
|
DSError TRKInitializeEventQueue();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* METROTRK_PORTABLE_NUBEVENT_H */
|