Debian Codegraph @

xbmc/powermanagement/IPowerSyscall.cpp

raw
1 /*
2 * Copyright (C) 2005-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 "IPowerSyscall.h"
10
11 CreatePowerSyscallFunc IPowerSyscall::m_createFunc = nullptr;
12
13 IPowerSyscall* IPowerSyscall::CreateInstance()
14 {
15 if (m_createFunc)
16 return m_createFunc();
17
18 return nullptr;
19 }
20
21 void IPowerSyscall::RegisterPowerSyscall(CreatePowerSyscallFunc createFunc)
22 {
23 m_createFunc = createFunc;
24 }