Serialize NIM, PS, PXI, SOC, SSL services

This commit is contained in:
Hamish Milne 2020-01-01 00:58:36 +00:00 committed by zhupengfei
parent 2409ee39cb
commit 571b1062f0
15 changed files with 66 additions and 8 deletions

View file

@ -2,8 +2,11 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "common/archives.h"
#include "core/hle/service/nim/nim_aoc.h"
SERIALIZE_EXPORT_IMPL(Service::NIM::NIM_AOC)
namespace Service::NIM {
NIM_AOC::NIM_AOC() : ServiceFramework("nim:aoc", 2) {

View file

@ -15,3 +15,5 @@ public:
};
} // namespace Service::NIM
BOOST_CLASS_EXPORT_KEY(Service::NIM::NIM_AOC)

View file

@ -2,8 +2,11 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "common/archives.h"
#include "core/hle/service/nim/nim_s.h"
SERIALIZE_EXPORT_IMPL(Service::NIM::NIM_S)
namespace Service::NIM {
NIM_S::NIM_S() : ServiceFramework("nim:s", 1) {

View file

@ -15,3 +15,5 @@ public:
};
} // namespace Service::NIM
BOOST_CLASS_EXPORT_KEY(Service::NIM::NIM_S)

View file

@ -2,11 +2,15 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "common/archives.h"
#include "core/core.h"
#include "core/hle/ipc_helpers.h"
#include "core/hle/kernel/event.h"
#include "core/hle/service/nim/nim_u.h"
SERVICE_CONSTRUCT_IMPL(Service::NIM::NIM_U)
SERIALIZE_EXPORT_IMPL(Service::NIM::NIM_U)
namespace Service::NIM {
NIM_U::NIM_U(Core::System& system) : ServiceFramework("nim:u", 2) {

View file

@ -41,6 +41,16 @@ private:
void CheckSysUpdateAvailable(Kernel::HLERequestContext& ctx);
std::shared_ptr<Kernel::Event> nim_system_update_event;
template <class Archive>
void serialize(Archive& ar, const unsigned int) {
ar& boost::serialization::base_object<Kernel::SessionRequestHandler>(*this);
ar& nim_system_update_event;
}
friend class boost::serialization::access;
};
} // namespace Service::NIM
SERVICE_CONSTRUCT(Service::NIM::NIM_U)
BOOST_CLASS_EXPORT_KEY(Service::NIM::NIM_U)