PS2SDK
PS2 Homebrew Libraries
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
22
#ifndef __LIBPWROFF_H__
23
#define __LIBPWROFF_H__
24
25
#define POWEROFF_THREAD_PRIORITY 0x70
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
49
typedef
void (*
poweroff_callback
)(
void
*arg);
50
56
extern
int
poweroffInit
(
void
);
57
68
extern
void
poweroffSetCallback
(
poweroff_callback
cb,
void
*arg);
69
75
extern
void
poweroffShutdown
(
void
);
76
87
extern
void
poweroffChangeThreadPriority
(
int
priority);
88
89
#ifdef __cplusplus
90
}
91
#endif
92
93
#endif
/* __LIBPWROFF_H__ */
poweroffChangeThreadPriority
void poweroffChangeThreadPriority(int priority)
Change thread priority.
Definition:
poweroff.c:118
poweroff_callback
void(* poweroff_callback)(void *arg)
User defined function for use in poweroffSetCallback()
Definition:
libpwroff.h:49
poweroffSetCallback
void poweroffSetCallback(poweroff_callback cb, void *arg)
Set callback function.
Definition:
poweroff.c:103
poweroffShutdown
void poweroffShutdown(void)
Immidiate console shutdown. Do not call it without closing all stuff.
Definition:
poweroff.c:111
poweroffInit
int poweroffInit(void)
Initializes the poweroff library.
Definition:
poweroff.c:64
ee
rpc
poweroff
include
libpwroff.h
Generated on Sun May 24 2026 21:54:00 for PS2SDK by
1.8.17