Serialize IR, MVD, NDM, NEWS, NFC

This commit is contained in:
Hamish Milne 2019-12-31 20:39:38 +00:00 committed by zhupengfei
parent 3d6e372f96
commit 2409ee39cb
19 changed files with 112 additions and 5 deletions

View file

@ -2,10 +2,13 @@
// 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/service/ndm/ndm_u.h"
SERIALIZE_EXPORT_IMPL(Service::NDM::NDM_U)
namespace Service::NDM {
void NDM_U::EnterExclusiveState(Kernel::HLERequestContext& ctx) {

View file

@ -270,8 +270,23 @@ private:
u32 scan_interval = DEFAULT_SCAN_INTERVAL;
u32 retry_interval = DEFAULT_RETRY_INTERVAL;
bool daemon_lock_enabled = false;
template <class Archive>
void serialize(Archive& ar, const unsigned int) {
ar& boost::serialization::base_object<Kernel::SessionRequestHandler>(*this);
ar& daemon_bit_mask;
ar& default_daemon_bit_mask;
ar& daemon_status;
ar& exclusive_state;
ar& scan_interval;
ar& retry_interval;
ar& daemon_lock_enabled;
}
friend class boost::serialization::access;
};
void InstallInterfaces(Core::System& system);
} // namespace Service::NDM
BOOST_CLASS_EXPORT_KEY(Service::NDM::NDM_U)