diff --git a/include/coreinit/alarm.h b/include/coreinit/alarm.h index f1aa4a9..efdeaa8 100644 --- a/include/coreinit/alarm.h +++ b/include/coreinit/alarm.h @@ -8,8 +8,6 @@ extern "C" { #endif -struct OSThread; - typedef struct OSAlarm OSAlarm; typedef struct OSAlarmLink OSAlarmLink; typedef struct OSAlarmQueue OSAlarmQueue; @@ -22,8 +20,11 @@ struct OSAlarmQueue { // OS_ALARM_QUEUE_TAG uint32_t tag; + + // Name set by OSInitAlarmQueueEx const char *name; UNKNOWN(4); + OSThreadQueue threadQueue; OSAlarm *head; OSAlarm *tail; @@ -49,6 +50,8 @@ struct OSAlarm { // OS_ALARM_TAG uint32_t tag; + + // Name set from OSCreateAlarmEx const char *name; UNKNOWN(4); OSAlarmCallback callback; @@ -98,6 +101,10 @@ OSGetAlarmUserData(OSAlarm *alarm); void OSInitAlarmQueue(OSAlarmQueue *queue); +void +OSInitAlarmQueueEx(OSAlarmQueue *queue, + const char *name); + BOOL OSSetAlarm(OSAlarm *alarm, OSTime time, diff --git a/rpl/libcoreinit/exports.h b/rpl/libcoreinit/exports.h index fa02efc..80b781b 100644 --- a/rpl/libcoreinit/exports.h +++ b/rpl/libcoreinit/exports.h @@ -5,6 +5,7 @@ EXPORT(OSCreateAlarm); EXPORT(OSCreateAlarmEx); EXPORT(OSGetAlarmUserData); EXPORT(OSInitAlarmQueue); +EXPORT(OSInitAlarmQueueEx); EXPORT(OSSetAlarm); EXPORT(OSSetPeriodicAlarm); EXPORT(OSSetAlarmTag);