SDL_power.h 492 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _SDL_power_h
  2. #define _SDL_power_h
  3. #include "SDL_stdinc.h"
  4. #include "begin_code.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. typedef enum
  9. {
  10. SDL_POWERSTATE_UNKNOWN,
  11. SDL_POWERSTATE_ON_BATTERY,
  12. SDL_POWERSTATE_NO_BATTERY,
  13. SDL_POWERSTATE_CHARGING,
  14. SDL_POWERSTATE_CHARGED
  15. } SDL_PowerState;
  16. typedef SDL_PowerState SDLCALL tSDL_GetPowerInfo(int *secs, int *pct);
  17. extern tSDL_GetPowerInfo *SDL_GetPowerInfo;
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #include "close_code.h"
  22. #endif