From fcf59a8dd8d17957a662cfdf72c9c00c15bb8bdd Mon Sep 17 00:00:00 2001 From: James Benton Date: Thu, 7 Jan 2016 04:46:02 -0800 Subject: [PATCH] Add missing OSInitAlarmQueueEx function --- include/coreinit/alarm.h | 11 +++++++++-- rpl/libcoreinit/exports.h | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) 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);