mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-18 03:25:22 +00:00
Link CARDUnlock.c, CARDBios.c matches, but can't be linked due to frank issues
Former-commit-id: 58d5c4a816
This commit is contained in:
29
include/dolphin/os/OSAlarm.h
Normal file
29
include/dolphin/os/OSAlarm.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user