comparison src/power/SDL_power.c @ 4444:42e1092225f9

Implemented SDL power APIs for iPhoneOS.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 30 Apr 2010 00:39:31 -0400
parents f7b03b6838cb
children b530ef003506
comparison
equal deleted inserted replaced
4443:c598e440c87c 4444:42e1092225f9
34 SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *, int *, int *); 34 SDL_bool SDL_GetPowerInfo_Linux_proc_apm(SDL_PowerState *, int *, int *);
35 SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState *, int *, int *); 35 SDL_bool SDL_GetPowerInfo_Windows(SDL_PowerState *, int *, int *);
36 SDL_bool SDL_GetPowerInfo_MacOSX(SDL_PowerState *, int *, int *); 36 SDL_bool SDL_GetPowerInfo_MacOSX(SDL_PowerState *, int *, int *);
37 SDL_bool SDL_GetPowerInfo_BeOS(SDL_PowerState *, int *, int *); 37 SDL_bool SDL_GetPowerInfo_BeOS(SDL_PowerState *, int *, int *);
38 SDL_bool SDL_GetPowerInfo_NintendoDS(SDL_PowerState *, int *, int *); 38 SDL_bool SDL_GetPowerInfo_NintendoDS(SDL_PowerState *, int *, int *);
39 SDL_bool SDL_GetPowerInfo_UIKit(SDL_PowerState *, int *, int *);
39 40
40 #ifndef SDL_POWER_DISABLED 41 #ifndef SDL_POWER_DISABLED
41 #ifdef SDL_POWER_HARDWIRED 42 #ifdef SDL_POWER_HARDWIRED
42 /* This is for things that _never_ have a battery */ 43 /* This is for things that _never_ have a battery */
43 static SDL_bool 44 static SDL_bool
59 SDL_GetPowerInfo_Linux_proc_apm, 60 SDL_GetPowerInfo_Linux_proc_apm,
60 #endif 61 #endif
61 #ifdef SDL_POWER_WINDOWS /* handles Win32, Win64, PocketPC. */ 62 #ifdef SDL_POWER_WINDOWS /* handles Win32, Win64, PocketPC. */
62 SDL_GetPowerInfo_Windows, 63 SDL_GetPowerInfo_Windows,
63 #endif 64 #endif
64 #ifdef SDL_POWER_MACOSX /* handles Mac OS X, Darwin, iPhone. */ 65 #ifdef SDL_POWER_UIKIT /* handles iPhone/iPad/etc */
66 SDL_GetPowerInfo_UIKit,
67 #endif
68 #ifdef SDL_POWER_MACOSX /* handles Mac OS X, Darwin. */
65 SDL_GetPowerInfo_MacOSX, 69 SDL_GetPowerInfo_MacOSX,
66 #endif 70 #endif
67 #ifdef SDL_POWER_NINTENDODS /* handles Nintendo DS. */ 71 #ifdef SDL_POWER_NINTENDODS /* handles Nintendo DS. */
68 SDL_GetPowerInfo_NintendoDS, 72 SDL_GetPowerInfo_NintendoDS,
69 #endif 73 #endif