mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-27 07:41:08 -04:00
make RsGroupInfo serializable
This commit is contained in:
parent
4d03b906b8
commit
588295e1e5
1 changed files with 15 additions and 6 deletions
|
@ -293,7 +293,7 @@ public:
|
||||||
std::string cipher_version;
|
std::string cipher_version;
|
||||||
};
|
};
|
||||||
|
|
||||||
class RsGroupInfo
|
class RsGroupInfo : RsSerializable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RsGroupInfo();
|
RsGroupInfo();
|
||||||
|
@ -303,6 +303,15 @@ public:
|
||||||
uint32_t flag;
|
uint32_t flag;
|
||||||
|
|
||||||
std::set<RsPgpId> peerIds;
|
std::set<RsPgpId> peerIds;
|
||||||
|
|
||||||
|
// RsSerializable interface
|
||||||
|
public:
|
||||||
|
void serial_process(RsGenericSerializer::SerializeJob j, RsGenericSerializer::SerializeContext &ctx) {
|
||||||
|
RS_SERIAL_PROCESS(id);
|
||||||
|
RS_SERIAL_PROCESS(name);
|
||||||
|
RS_SERIAL_PROCESS(flag);
|
||||||
|
RS_SERIAL_PROCESS(peerIds);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
std::ostream &operator<<(std::ostream &out, const RsPeerDetails &detail);
|
std::ostream &operator<<(std::ostream &out, const RsPeerDetails &detail);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue