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