sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
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
17
#ifndef __POWEROFF_H__
18
#define __POWEROFF_H__
19
20
#include <
irx.h
>
21
22
typedef
void (*pwoffcb)(
void
*param);
23
24
extern
void
SetPowerButtonHandler(pwoffcb func,
void
* param);
25
extern
void
AddPowerOffHandler(pwoffcb func,
void
* param);
26
extern
void
RemovePowerOffHandler(pwoffcb func);
27
extern
void
PoweroffShutdown();
28
29
#define poweroff_IMPORTS_start DECLARE_IMPORT_TABLE(poweroff, 1, 1)
30
#define poweroff_IMPORTS_end END_IMPORT_TABLE
31
32
#define I_SetPowerButtonHandler DECLARE_IMPORT(4, SetPowerButtonHandler)
33
#define I_AddPowerOffHandler DECLARE_IMPORT(5, AddPowerOffHandler)
34
#define I_RemovePowerOffHandler DECLARE_IMPORT(6, RemovePowerOffHandler)
35
#define I_PoweroffShutdown DECLARE_IMPORT(7, PoweroffShutdown)
36
37
#endif
/* __POWEROFF_H__ */
irx.h
core
poweroff
include
iop
poweroff.h
Generated by
1.18.0