psl1ght
A free SDK for Sony's PS3 console
sysutil.h
Go to the documentation of this file.
1 
5 #ifndef __LV2_SYSUTIL_H__
6 #define __LV2_SYSUTIL_H__
7 
8 #include <ppu-types.h>
9 
11 #define SYSUTIL_OK 0
12 
14 #define SYSUTIL_EVENT_SLOT0 0
15 
16 #define SYSUTIL_EVENT_SLOT1 1
17 
18 #define SYSUTIL_EVENT_SLOT2 2
19 
20 #define SYSUTIL_EVENT_SLOT3 3
21 
23 #define SYSUTIL_EXIT_GAME 0x0101
24 
25 #define SYSUTIL_DRAW_BEGIN 0x0121
26 
27 #define SYSUTIL_DRAW_END 0x0122
28 
29 #define SYSUTIL_MENU_OPEN 0x0131
30 
31 #define SYSUTIL_MENU_CLOSE 0x0132
32 
33 #define SYSUTIL_OSK_LOADED 0x0502
34 
35 #define SYSUTIL_OSK_DONE 0x0503
36 
37 #define SYSUTIL_OSK_UNLOADED 0x0504
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
58 typedef void (*sysutilCallback)(u64 status,u64 param,void *usrdata);
59 
67 
68 
74 s32 sysUtilUnregisterCallback(s32 slot);
75 
92 s32 sysUtilRegisterCallback(s32 slot,sysutilCallback cb,void *usrdata);
93 
94 #ifdef __cplusplus
95  }
96 #endif
97 
98 #endif
s32 sysUtilRegisterCallback(s32 slot, sysutilCallback cb, void *usrdata)
Register a callback function for system events.
s32 sysUtilCheckCallback()
Check for events.
void(* sysutilCallback)(u64 status, u64 param, void *usrdata)
Pointer to callback function.
Definition: sysutil.h:58
s32 sysUtilUnregisterCallback(s32 slot)
Unregister a callback function.