ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Go to the source code of this file.
Macros | |
#define | POWEROFF_THREAD_PRIORITY 0x70 |
Typedefs | |
typedef void(* | poweroff_callback) (void *arg) |
Functions | |
int | poweroffInit (void) |
void | poweroffSetCallback (poweroff_callback cb, void *arg) |
void | poweroffShutdown (void) |
void | poweroffChangeThreadPriority (int priority) |
Power-off library.
Definition in file libpwroff.h.
#define POWEROFF_THREAD_PRIORITY 0x70 |
Definition at line 19 of file libpwroff.h.
typedef void(* poweroff_callback) (void *arg) |
Definition at line 25 of file libpwroff.h.
void poweroffChangeThreadPriority | ( | int | priority | ) |
Definition at line 110 of file poweroff.c.
References ChangeThreadPriority(), and powerOffThreadId.
int poweroffInit | ( | void | ) |
Initializes the poweroff library. A service thread with a default priority of 0x70 will be created.
Definition at line 57 of file poweroff.c.
References _gp, _iop_reboot_count, ee_thread_t::attr, cb_queue, cb_srv, cd0, CreateThread(), DeleteThread(), ee_thread_t::func, ee_thread_t::gp_reg, ee_thread_t::initial_priority, nopdelay(), NULL, ee_thread_t::option, poffThreadStack, POWEROFF_THREAD_PRIORITY, PowerOffThread(), powerOffThreadId, PWROFF_ENABLE_AUTO_SHUTOFF, PWROFF_IRX, SifRpcClientData_t::server, SifBindRpc(), SifCallRpc(), SifRemoveRpc(), SifRemoveRpcQueue(), ee_thread_t::stack, ee_thread_t::stack_size, StartThread(), and TerminateThread().
Referenced by main(), poweroffSetCallback(), and poweroffShutdown().
void poweroffSetCallback | ( | poweroff_callback | cb, |
void * | arg | ||
) |
Definition at line 95 of file poweroff.c.
References poweroff_cb, poweroff_data, and poweroffInit().
Referenced by main().
void poweroffShutdown | ( | void | ) |
Definition at line 103 of file poweroff.c.
References cd0, NULL, poweroffInit(), PWROFF_SHUTDOWN, and SifCallRpc().
Referenced by poweroffCallback().