RetroArch
alarm.h
Go to the documentation of this file.
1 #pragma once
2 #include <wiiu/types.h>
3 #include "thread.h"
4 #include "time.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 typedef struct OSAlarm OSAlarm;
11 
13 
14 #define OS_ALARM_QUEUE_TAG 0x614C6D51u
15 typedef struct
16 {
18  const char *name;
23 } OSAlarmQueue;
24 
25 typedef struct
26 {
29 } OSAlarmLink;
30 
31 #define OS_ALARM_TAG 0x614C724Du
32 typedef struct OSAlarm
33 {
35  const char *name;
44  void *userData;
49 } OSAlarm;
50 
51 void OSCreateAlarm(OSAlarm *alarm);
52 void OSCreateAlarmEx(OSAlarm *alarm, const char *name);
53 void OSSetAlarmUserData(OSAlarm *alarm, void *data);
54 void *OSGetAlarmUserData(OSAlarm *alarm);
55 void OSInitAlarmQueue(OSAlarmQueue *queue);
56 void OSInitAlarmQueueEx(OSAlarmQueue *queue, const char *name);
59 void OSSetAlarmTag(OSAlarm *alarm, uint32_t group);
60 BOOL OSCancelAlarm(OSAlarm *alarm);
62 BOOL OSWaitAlarm(OSAlarm *alarm);
63 
64 #ifdef __cplusplus
65 }
66 #endif
GLuint const GLchar * name
Definition: glext.h:6671
void OSCreateAlarmEx(OSAlarm *alarm, const char *name)
OSAlarm * tail
Definition: alarm.h:22
Definition: alarm.h:32
uint32_t tag
Definition: alarm.h:17
GLuint start
Definition: glext.h:6292
OSAlarmCallback callback
Definition: alarm.h:37
BOOL OSSetAlarm(OSAlarm *alarm, OSTime time, OSAlarmCallback callback)
OSTime start
Definition: alarm.h:43
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
void OSInitAlarmQueue(OSAlarmQueue *queue)
Definition: ibxm.h:9
uint32_t __unknown
Definition: alarm.h:19
uint32_t __unknown0
Definition: alarm.h:36
Definition: thread.h:121
BOOL OSCancelAlarm(OSAlarm *alarm)
void callback(s32 result, dvdcmdblk *block)
Definition: dvd.c:2293
void OSSetAlarmUserData(OSAlarm *alarm, void *data)
void OSInitAlarmQueueEx(OSAlarmQueue *queue, const char *name)
OSThreadQueue threadQueue
Definition: alarm.h:20
OSThreadQueue threadQueue
Definition: alarm.h:46
BOOL OSWaitAlarm(OSAlarm *alarm)
Definition: alarm.h:25
uint32_t state
Definition: alarm.h:45
void OSSetAlarmTag(OSAlarm *alarm, uint32_t group)
const char * name
Definition: alarm.h:18
BOOL OSSetPeriodicAlarm(OSAlarm *alarm, OSTime start, OSTime interval, OSAlarmCallback callback)
void * OSGetAlarmUserData(OSAlarm *alarm)
uint32_t __unknown1
Definition: alarm.h:39
time_t time(time_t *timer)
Definition: alarm.h:15
uint32_t group
Definition: alarm.h:38
OSAlarmLink link
Definition: alarm.h:41
int64_t OSTime
Definition: time.h:28
OSAlarm * head
Definition: alarm.h:21
void OSCancelAlarms(uint32_t group)
OSAlarmQueue * alarmQueue
Definition: alarm.h:47
OSAlarm * prev
Definition: alarm.h:27
uint32_t tag
Definition: alarm.h:34
OSAlarm * next
Definition: alarm.h:28
unsigned int BOOL
Definition: gctypes.h:51
void(* OSAlarmCallback)(OSAlarm *, OSContext *)
Definition: alarm.h:12
OSTime nextFire
Definition: alarm.h:40
OSTime period
Definition: alarm.h:42
const char * name
Definition: alarm.h:35
GLboolean GLuint group
Definition: glext.h:12027
OSContext * context
Definition: alarm.h:48
void * userData
Definition: alarm.h:44
Definition: thread.h:65
unsigned int uint32_t
Definition: stdint.h:126
void OSCreateAlarm(OSAlarm *alarm)
struct OSAlarm OSAlarm
Definition: alarm.h:10