PageRenderTime 43ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/xbmc/osx/DarwinUtils.h

https://github.com/energy6/xbmc
C Header | 48 lines | 23 code | 4 blank | 21 comment | 0 complexity | 7495b02e5307a4f784d613343fadb3c4 MD5 | raw file
  1. /*
  2. * Copyright (C) 2010-2013 Team XBMC
  3. * http://www.xbmc.org
  4. *
  5. * This Program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2, or (at your option)
  8. * any later version.
  9. *
  10. * This Program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with XBMC; see the file COPYING. If not, see
  17. * <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. #ifndef _DARWIN_UTILS_H_
  21. #define _DARWIN_UTILS_H_
  22. #include <string>
  23. // We forward declare CFStringRef in order to avoid
  24. // pulling in tons of Objective-C headers.
  25. struct __CFString;
  26. typedef const struct __CFString * CFStringRef;
  27. #ifdef __cplusplus
  28. extern "C"
  29. {
  30. #endif
  31. bool DarwinIsAppleTV2(void);
  32. bool DarwinHasRetina(void);
  33. const char *GetDarwinVersionString(void);
  34. float GetIOSVersion(void);
  35. int GetDarwinFrameworkPath(bool forPython, char* path, uint32_t *pathsize);
  36. int GetDarwinExecutablePath(char* path, uint32_t *pathsize);
  37. bool DarwinHasVideoToolboxDecoder(void);
  38. int DarwinBatteryLevel(void);
  39. void DarwinSetScheduling(int message);
  40. bool DarwinCFStringRefToString(CFStringRef source, std::string& destination);
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif