/*
# _____     ___ ____     ___ ____
#  ____|   |    ____|   |        | |____|
# |     ___|   |____ ___|    ____| |    \    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.
#
# $Id: poweroff.h 1013 2005-04-20 19:03:01Z tyranid $
*/

#ifndef __POWEROFF_H__
#define __POWEROFF_H__

#define poweroff_IMPORTS_start DECLARE_IMPORT_TABLE(poweroff, 1, 1)
#define poweroff_IMPORTS_end END_IMPORT_TABLE

typedef void (*pwoffcb)(void*);

void AddPowerOffHandler(pwoffcb func, void* param);
#define I_AddPowerOffHandler DECLARE_IMPORT(4, AddPowerOffHandler)
void RemovePowerOffHandler(pwoffcb func);
#define I_RemovePowerOffHandler DECLARE_IMPORT(5, RemovePowerOffHandler)

#endif /* __POWEROFF_H__ */
