/*
* Copyright (c) 2018-2020 Atmosphère-NX
*
* 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 .
*/
#include
#include "htcs_manager_service_object.hpp"
#include "htcs_socket_service_object.hpp"
namespace ams::htcs::server {
namespace {
struct ServiceObjectAllocatorTag;
using ServiceObjectAllocator = ams::sf::ExpHeapStaticAllocator<32_KB, ServiceObjectAllocatorTag>;
using ServiceObjectFactory = ams::sf::ObjectFactory;
class StaticAllocatorInitializer {
public:
StaticAllocatorInitializer() {
ServiceObjectAllocator::Initialize(lmem::CreateOption_ThreadSafe);
}
} g_static_allocator_initializer;
}
Result ManagerServiceObject::GetPeerNameAny(sf::Out out) {
AMS_ABORT("ManagerServiceObject::GetPeerNameAny");
}
Result ManagerServiceObject::GetDefaultHostName(sf::Out out) {
AMS_ABORT("ManagerServiceObject::GetDefaultHostName");
}
Result ManagerServiceObject::CreateSocketOld(sf::Out out_err, sf::Out> out) {
return this->CreateSocket(out_err, out, false);
}
Result ManagerServiceObject::CreateSocket(sf::Out out_err, sf::Out> out, bool enable_disconnection_emulation) {
AMS_ABORT("ManagerServiceObject::CreateSocket");
}
Result ManagerServiceObject::RegisterProcessId(const sf::ClientProcessId &client_pid) {
/* NOTE: Nintendo does nothing here. */
return ResultSuccess();
}
Result ManagerServiceObject::MonitorManager(const sf::ClientProcessId &client_pid) {
/* NOTE: Nintendo does nothing here. */
return ResultSuccess();
}
Result ManagerServiceObject::StartSelect(sf::Out out_task_id, sf::OutCopyHandle out_event, const sf::InMapAliasArray &read_handles, const sf::InMapAliasArray &write_handles, const sf::InMapAliasArray &exception_handles, s64 tv_sec, s64 tv_usec) {
AMS_ABORT("ManagerServiceObject::StartSelect");
}
Result ManagerServiceObject::EndSelect(sf::Out out_err, sf::Out out_res, const sf::OutMapAliasArray &read_handles, const sf::OutMapAliasArray &write_handles, const sf::OutMapAliasArray &exception_handles, u32 task_id) {
AMS_ABORT("ManagerServiceObject::EndSelect");
}
}