PageRenderTime 27ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/xbmc/osx/DarwinUtils.h

https://gitlab.com/stormrev/xbmca10
C Header | 48 lines | 23 code | 4 blank | 21 comment | 0 complexity | d6a29dd1dc4c62eb9071a6e3f2489a44 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-3.0, GPL-2.0, LGPL-2.1, LGPL-3.0, CC-BY-SA-3.0, BSD-3-Clause, 0BSD
  1. /*
  2. * Copyright (C) 2010-2012 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