00001 /* 00002 SDL - Simple DirectMedia Layer 00003 Copyright (C) 1997-2009 Sam Lantinga 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 00019 Sam Lantinga 00020 slouken@libsdl.org 00021 */ 00022 00023 #ifndef _SDL_power_h 00024 #define _SDL_power_h 00025 00032 #include "SDL_stdinc.h" 00033 00034 #include "begin_code.h" 00035 /* Set up for C function definitions, even when using C++ */ 00036 #ifdef __cplusplus 00037 /* *INDENT-OFF* */ 00038 extern "C" { 00039 /* *INDENT-ON* */ 00040 #endif 00041 00047 typedef enum 00048 { 00049 SDL_POWERSTATE_UNKNOWN, 00050 SDL_POWERSTATE_ON_BATTERY, 00051 SDL_POWERSTATE_NO_BATTERY, 00052 SDL_POWERSTATE_CHARGING, 00053 SDL_POWERSTATE_CHARGED, 00054 } SDL_PowerState; 00055 00056 00072 extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *secs, int *pct); 00073 00074 /* Ends C function definitions when using C++ */ 00075 #ifdef __cplusplus 00076 /* *INDENT-OFF* */ 00077 } 00078 /* *INDENT-ON* */ 00079 #endif 00080 #include "close_code.h" 00081 00082 #endif /* _SDL_power_h */ 00083 00084 /* vi: set ts=4 sw=4 expandtab: */