sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
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
23
#ifndef __LIBPWROFF_H__
24
#define __LIBPWROFF_H__
25
26
#define POWEROFF_THREAD_PRIORITY 0x70
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
50
typedef
void (*
poweroff_callback
)(
void
*arg);
51
57
extern
int
poweroffInit
(
void
);
58
69
extern
void
poweroffSetCallback
(
poweroff_callback
cb,
void
*arg);
70
76
extern
void
poweroffShutdown
(
void
);
77
88
extern
void
poweroffChangeThreadPriority
(
int
priority);
89
90
#ifdef __cplusplus
91
}
92
#endif
93
94
#endif
/* __LIBPWROFF_H__ */
poweroffSetCallback
void poweroffSetCallback(poweroff_callback cb, void *arg)
Set callback function.
Definition
poweroff.c:104
poweroffInit
int poweroffInit(void)
Initializes the poweroff library.
Definition
poweroff.c:64
poweroff_callback
void(*) poweroff_callback(void *arg)
User defined function for use in poweroffSetCallback().
Definition
libpwroff.h:50
poweroffShutdown
void poweroffShutdown(void)
Immidiate console shutdown. Do not call it without closing all stuff.
Definition
poweroff.c:112
poweroffChangeThreadPriority
void poweroffChangeThreadPriority(int priority)
Change thread priority.
Definition
poweroff.c:119
core
poweroff
include
libpwroff.h
Generated by
1.18.0