kodi
DarwinUtils.h
1 /*
2  * Copyright (C) 2010-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <string>
12 
13 // We forward declare CFStringRef in order to avoid
14 // pulling in tons of Objective-C headers.
15 struct __CFString;
16 typedef const struct __CFString * CFStringRef;
17 
19 {
20 public:
21  static const char *getIosPlatformString(void);
22  static const char *GetOSReleaseString(void);
23  static const char *GetOSVersionString(void);
24  static const char* GetVersionString();
25  static std::string GetFrameworkPath(bool forPython);
26  static int GetExecutablePath(char* path, size_t *pathsize);
27  static void SetScheduling(bool realtime);
28  static bool CFStringRefToString(CFStringRef source, std::string& destination);
29  static bool CFStringRefToUTF8String(CFStringRef source, std::string& destination);
30  static const std::string& GetManufacturer(void);
31  static bool IsAliasShortcut(const std::string& path, bool isdirectory);
32  static void TranslateAliasShortcut(std::string& path);
33  static bool CreateAliasShortcut(const std::string& fromPath, const std::string& toPath);
34 };
35 
Definition: DarwinUtils.h:18