PS2SDK
PS2 Homebrew Libraries
poweroff.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
16 #ifndef __POWEROFF_H__
17 #define __POWEROFF_H__
18 
19 #include <irx.h>
20 
21 typedef void (*pwoffcb)(void *param);
22 
23 extern void SetPowerButtonHandler(pwoffcb func, void* param);
24 extern void AddPowerOffHandler(pwoffcb func, void* param);
25 extern void RemovePowerOffHandler(pwoffcb func);
26 extern void PoweroffShutdown();
27 
28 #define poweroff_IMPORTS_start DECLARE_IMPORT_TABLE(poweroff, 1, 1)
29 #define poweroff_IMPORTS_end END_IMPORT_TABLE
30 
31 #define I_SetPowerButtonHandler DECLARE_IMPORT(4, SetPowerButtonHandler)
32 #define I_AddPowerOffHandler DECLARE_IMPORT(5, AddPowerOffHandler)
33 #define I_RemovePowerOffHandler DECLARE_IMPORT(6, RemovePowerOffHandler)
34 #define I_PoweroffShutdown DECLARE_IMPORT(7, PoweroffShutdown)
35 
36 #endif /* __POWEROFF_H__ */
irx.h