ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
libpwroff.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 __LIBPWROFF_H__
17 #define __LIBPWROFF_H__
18 
19 #define POWEROFF_THREAD_PRIORITY 0x70
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 typedef void (*poweroff_callback)(void *arg);
26 
30 int poweroffInit(void);
31 void poweroffSetCallback(poweroff_callback cb, void *arg);
32 void poweroffShutdown(void);
33 void poweroffChangeThreadPriority(int priority);
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif /* __LIBPWROFF_H__ */
void poweroffSetCallback(poweroff_callback cb, void *arg)
Definition: poweroff.c:95
int poweroffInit(void)
Definition: poweroff.c:57
void(* poweroff_callback)(void *arg)
Definition: libpwroff.h:25
void poweroffShutdown(void)
Definition: poweroff.c:103
void poweroffChangeThreadPriority(int priority)
Definition: poweroff.c:110