mirror of https://github.com/PrimeDecomp/prime.git
30 lines
486 B
C
30 lines
486 B
C
|
#ifndef __OSALARM_H__
|
||
|
#define __OSALARM_H__
|
||
|
|
||
|
#include <types.h>
|
||
|
#include <dolphin/os/OSContext.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
typedef struct OSAlarm OSAlarm;
|
||
|
typedef void (*OSAlarmHandler)(OSAlarm* alarm, OSContext* context);
|
||
|
|
||
|
struct OSAlarm {
|
||
|
OSAlarmHandler handler;
|
||
|
u32 tag;
|
||
|
OSTime fire;
|
||
|
OSAlarm* prev;
|
||
|
OSAlarm* next;
|
||
|
OSTime period;
|
||
|
OSTime start;
|
||
|
};
|
||
|
|
||
|
void OSSetAlarm(OSAlarm* alarm, OSTime tick, OSAlarmHandler handler);
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|