Serialize service manager, server prt

This commit is contained in:
Hamish Milne 2019-12-23 11:41:07 +00:00 committed by zhupengfei
parent 4f95575d41
commit 7a5bde0b44
11 changed files with 77 additions and 16 deletions

View file

@ -6,6 +6,7 @@
#include <memory>
#include <vector>
#include <boost/serialization/unique_ptr.hpp>
#include "common/common_types.h"
#include "core/hle/ipc.h"
#include "core/hle/kernel/thread.h"
@ -26,6 +27,20 @@ struct MappedBufferContext {
std::unique_ptr<u8[]> buffer;
std::unique_ptr<u8[]> reserve_buffer;
private:
template <class Archive>
void serialize(Archive& ar, const unsigned int file_version)
{
ar & permissions;
ar & size;
ar & source_address;
ar & target_address;
// TODO: Check whether we need these. If we do, add a field for the size and/or change to a 'vector'
//ar & buffer;
//ar & reserve_buffer;
}
friend class boost::serialization::access;
};
/// Performs IPC command buffer translation from one process to another.