Add missing OSInitAlarmQueueEx function

This commit is contained in:
James Benton 2016-01-07 04:46:02 -08:00
parent e123ba272f
commit fcf59a8dd8
2 changed files with 10 additions and 2 deletions

View File

@ -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,

View File

@ -5,6 +5,7 @@ EXPORT(OSCreateAlarm);
EXPORT(OSCreateAlarmEx);
EXPORT(OSGetAlarmUserData);
EXPORT(OSInitAlarmQueue);
EXPORT(OSInitAlarmQueueEx);
EXPORT(OSSetAlarm);
EXPORT(OSSetPeriodicAlarm);
EXPORT(OSSetAlarmTag);