sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
poweroff.h File Reference
#include <irx.h>

Go to the source code of this file.

Macros

#define poweroff_IMPORTS_start   DECLARE_IMPORT_TABLE(poweroff, 1, 1)
#define poweroff_IMPORTS_end   END_IMPORT_TABLE
#define I_SetPowerButtonHandler   DECLARE_IMPORT(4, SetPowerButtonHandler)
#define I_AddPowerOffHandler   DECLARE_IMPORT(5, AddPowerOffHandler)
#define I_RemovePowerOffHandler   DECLARE_IMPORT(6, RemovePowerOffHandler)
#define I_PoweroffShutdown   DECLARE_IMPORT(7, PoweroffShutdown)

Typedefs

typedef void(*) pwoffcb(void *param)

Functions

void SetPowerButtonHandler (pwoffcb func, void *param)
void AddPowerOffHandler (pwoffcb func, void *param)
void RemovePowerOffHandler (pwoffcb func)
void PoweroffShutdown ()

Detailed Description

Power-off processing definitions and imports.

Definition in file poweroff.h.

Macro Definition Documentation

◆ I_AddPowerOffHandler

#define I_AddPowerOffHandler   DECLARE_IMPORT(5, AddPowerOffHandler)

Definition at line 33 of file poweroff.h.

◆ I_PoweroffShutdown

#define I_PoweroffShutdown   DECLARE_IMPORT(7, PoweroffShutdown)

Definition at line 35 of file poweroff.h.

◆ I_RemovePowerOffHandler

#define I_RemovePowerOffHandler   DECLARE_IMPORT(6, RemovePowerOffHandler)

Definition at line 34 of file poweroff.h.

◆ I_SetPowerButtonHandler

#define I_SetPowerButtonHandler   DECLARE_IMPORT(4, SetPowerButtonHandler)

Definition at line 32 of file poweroff.h.

◆ poweroff_IMPORTS_end

#define poweroff_IMPORTS_end   END_IMPORT_TABLE

Definition at line 30 of file poweroff.h.

◆ poweroff_IMPORTS_start

#define poweroff_IMPORTS_start   DECLARE_IMPORT_TABLE(poweroff, 1, 1)

Definition at line 29 of file poweroff.h.

Typedef Documentation

◆ pwoffcb

typedef void(*) pwoffcb(void *param)

Definition at line 22 of file poweroff.h.

Function Documentation

◆ AddPowerOffHandler()

void AddPowerOffHandler ( pwoffcb func,
void * param )
extern

Definition at line 158 of file poweroff.c.

◆ PoweroffShutdown()

void PoweroffShutdown ( )
extern

Definition at line 201 of file poweroff.c.

◆ RemovePowerOffHandler()

void RemovePowerOffHandler ( pwoffcb func)
extern

Definition at line 179 of file poweroff.c.

◆ SetPowerButtonHandler()

void SetPowerButtonHandler ( pwoffcb func,
void * param )
extern

Definition at line 152 of file poweroff.c.