Sony PlayStation2 Study
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.

36 lines
1.1 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. /**
  11. * @file
  12. * Power-off processing definitions and imports.
  13. */
  14. #ifndef __POWEROFF_H__
  15. #define __POWEROFF_H__
  16. #include <irx.h>
  17. typedef void (*pwoffcb)(void*);
  18. void SetPowerButtonHandler(pwoffcb func, void* param);
  19. void AddPowerOffHandler(pwoffcb func, void* param);
  20. void RemovePowerOffHandler(pwoffcb func);
  21. void PoweroffShutdown();
  22. #define poweroff_IMPORTS_start DECLARE_IMPORT_TABLE(poweroff, 1, 1)
  23. #define poweroff_IMPORTS_end END_IMPORT_TABLE
  24. #define I_SetPowerButtonHandler DECLARE_IMPORT(4, SetPowerButtonHandler)
  25. #define I_AddPowerOffHandler DECLARE_IMPORT(5, AddPowerOffHandler)
  26. #define I_RemovePowerOffHandler DECLARE_IMPORT(6, RemovePowerOffHandler)
  27. #define I_PoweroffShutdown DECLARE_IMPORT(7, PoweroffShutdown)
  28. #endif /* __POWEROFF_H__ */