1 /*---------------------------------------------------------------------------* 2 Project: Dolphin OS Reset button API 3 File: OSResetSW.h 4 5 Copyright 2000, 2001 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Log: OSResetSW.h,v $ 14 Revision 1.3 2006/07/21 12:57:16 hirose 15 Added OSSetPowerCallback(). 16 17 Revision 1.2 2006/02/04 11:56:48 hashida 18 (none) 19 20 Revision 1.1.1.1 2005/12/29 06:53:28 hiratsu 21 Initial import. 22 23 Revision 1.1.1.1 2005/05/12 02:41:07 yasuh-to 24 Ported from dolphin source tree. 25 26 27 2 2001/08/27 10:34 Shiki 28 Added OSGetResetButtonState(). 29 30 1 2000/06/14 11:51p Shiki 31 Initial check-in. 32 $NoKeywords: $ 33 *---------------------------------------------------------------------------*/ 34 35 #ifndef __OSRESETSW_H__ 36 #define __OSRESETSW_H__ 37 38 #include <revolution/types.h> 39 #include <revolution/os/OSContext.h> 40 41 #ifdef __cplusplus 42 extern "C" { 43 #endif 44 45 typedef void (*OSResetCallback)(void); 46 typedef void (*OSPowerCallback)(void); 47 48 BOOL OSGetResetButtonState( void ); 49 50 OSResetCallback OSSetResetCallback ( OSResetCallback callback ); 51 OSPowerCallback OSSetPowerCallback ( OSPowerCallback callback ); 52 53 // obsolete 54 BOOL OSGetResetSwitchState( void ); 55 56 #ifdef __cplusplus 57 } 58 #endif 59 60 #endif // __OSRESETSW_H__ 61