PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
poweroff.h File Reference
#include <irx.h>
+ Include dependency graph for poweroff.h:
+ This graph shows which files directly or indirectly include this file:

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 *)
 

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

◆ poweroff_IMPORTS_start

#define poweroff_IMPORTS_start   DECLARE_IMPORT_TABLE(poweroff, 1, 1)

Definition at line 28 of file poweroff.h.

◆ poweroff_IMPORTS_end

#define poweroff_IMPORTS_end   END_IMPORT_TABLE

Definition at line 29 of file poweroff.h.

◆ I_SetPowerButtonHandler

#define I_SetPowerButtonHandler   DECLARE_IMPORT(4, SetPowerButtonHandler)

Definition at line 31 of file poweroff.h.

◆ I_AddPowerOffHandler

#define I_AddPowerOffHandler   DECLARE_IMPORT(5, AddPowerOffHandler)

Definition at line 32 of file poweroff.h.

◆ I_RemovePowerOffHandler

#define I_RemovePowerOffHandler   DECLARE_IMPORT(6, RemovePowerOffHandler)

Definition at line 33 of file poweroff.h.

◆ I_PoweroffShutdown

#define I_PoweroffShutdown   DECLARE_IMPORT(7, PoweroffShutdown)

Definition at line 34 of file poweroff.h.

Typedef Documentation

◆ pwoffcb

typedef void(* pwoffcb) (void *)

Definition at line 21 of file poweroff.h.

Function Documentation

◆ SetPowerButtonHandler()

void SetPowerButtonHandler ( pwoffcb func,
void * param )
extern

Definition at line 152 of file poweroff.c.

◆ AddPowerOffHandler()

void AddPowerOffHandler ( pwoffcb func,
void * param )
extern

Definition at line 158 of file poweroff.c.

◆ RemovePowerOffHandler()

void RemovePowerOffHandler ( pwoffcb func)
extern

Definition at line 179 of file poweroff.c.

◆ PoweroffShutdown()

void PoweroffShutdown ( )
extern

Definition at line 201 of file poweroff.c.