mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-23 12:53:17 +00:00
41 lines
1.7 KiB
C++
41 lines
1.7 KiB
C++
|
/*
|
||
|
* Copyright (c) 2020-2021 ndeadly
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify it
|
||
|
* under the terms and conditions of the GNU General Public License,
|
||
|
* version 2, as published by the Free Software Foundation.
|
||
|
*
|
||
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||
|
* more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
#pragma once
|
||
|
#include <stratosphere.hpp>
|
||
|
#include "mc_types.hpp"
|
||
|
#include "../bluetooth_mitm/bluetooth/bluetooth_types.hpp"
|
||
|
|
||
|
#define AMS_MISSION_CONTROL_INTERFACE_INFO(C, H) \
|
||
|
AMS_SF_METHOD_INFO(C, H, 0, Result, GetVersion, (sf::Out<u32> version), (version)) \
|
||
|
AMS_SF_METHOD_INFO(C, H, 1, Result, GetBuildVersionString, (sf::Out<ams::mitm::mc::VersionString> version), (version)) \
|
||
|
AMS_SF_METHOD_INFO(C, H, 2, Result, GetBuildDateString, (sf::Out<ams::mitm::mc::DateString> version), (version)) \
|
||
|
|
||
|
AMS_SF_DEFINE_INTERFACE(ams::mitm::mc, IMissionControlInterface, AMS_MISSION_CONTROL_INTERFACE_INFO, 0x30eba3d4)
|
||
|
|
||
|
namespace ams::mitm::mc {
|
||
|
|
||
|
class MissionControlService {
|
||
|
private:
|
||
|
|
||
|
public:
|
||
|
Result GetVersion(sf::Out<u32> version);
|
||
|
Result GetBuildVersionString(sf::Out<ams::mitm::mc::VersionString> version);
|
||
|
Result GetBuildDateString(sf::Out<ams::mitm::mc::DateString> date);
|
||
|
};
|
||
|
static_assert(IsIMissionControlInterface<MissionControlService>);
|
||
|
|
||
|
}
|