You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.
*/
/**
* @file * Power-off processing definitions and imports. */
#ifndef __POWEROFF_H__
#define __POWEROFF_H__
#include <irx.h>
typedef void (*pwoffcb)(void*);
void SetPowerButtonHandler(pwoffcb func, void* param);void AddPowerOffHandler(pwoffcb func, void* param);void RemovePowerOffHandler(pwoffcb func);void PoweroffShutdown();
#define poweroff_IMPORTS_start DECLARE_IMPORT_TABLE(poweroff, 1, 1)
#define poweroff_IMPORTS_end END_IMPORT_TABLE
#define I_SetPowerButtonHandler DECLARE_IMPORT(4, SetPowerButtonHandler)
#define I_AddPowerOffHandler DECLARE_IMPORT(5, AddPowerOffHandler)
#define I_RemovePowerOffHandler DECLARE_IMPORT(6, RemovePowerOffHandler)
#define I_PoweroffShutdown DECLARE_IMPORT(7, PoweroffShutdown)
#endif /* __POWEROFF_H__ */
|