PS2SDK
PS2 Homebrew Libraries
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#ifndef __LIBPWROFF_H__
23#define __LIBPWROFF_H__
24
25#define POWEROFF_THREAD_PRIORITY 0x70
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
49typedef void (*poweroff_callback)(void *arg);
50
56extern int poweroffInit(void);
57
68extern void poweroffSetCallback(poweroff_callback cb, void *arg);
69
75extern void poweroffShutdown(void);
76
87extern void poweroffChangeThreadPriority(int priority);
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif /* __LIBPWROFF_H__ */
void poweroffSetCallback(poweroff_callback cb, void *arg)
Set callback function.
Definition poweroff.c:103
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:49
void poweroffShutdown(void)
Immidiate console shutdown. Do not call it without closing all stuff.
Definition poweroff.c:111
void poweroffChangeThreadPriority(int priority)
Change thread priority.
Definition poweroff.c:118