1 /*
2  *  Copyright (C) 2016-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 #include "PlatformDarwinOSX.h"
10 
11 #include "windowing/osx/WinSystemOSXGL.h"
12 
13 #include "platform/darwin/osx/XBMCHelper.h"
14 #include "platform/darwin/osx/powermanagement/CocoaPowerSyscall.h"
15 
CreateInstance()16 CPlatform* CPlatform::CreateInstance()
17 {
18   return new CPlatformDarwinOSX();
19 }
20 
Init()21 bool CPlatformDarwinOSX::Init()
22 {
23   if (!CPlatformDarwin::Init())
24     return false;
25 
26   // Configure and possible manually start the helper.
27   XBMCHelper::GetInstance().Configure();
28 
29   CWinSystemOSXGL::Register();
30 
31   CCocoaPowerSyscall::Register();
32 
33   return true;
34 }
35