mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fix compile for new gxs metadata serialisation
This commit is contained in:
parent
a6a3d66a83
commit
8f64df02da
@ -32,6 +32,7 @@ bool operator ==(const RsGxsGrpMetaData& l, const RsGxsGrpMetaData& r)
|
|||||||
if(!(l.keys == r.keys)) return false;
|
if(!(l.keys == r.keys)) return false;
|
||||||
if(l.mGroupFlags != r.mGroupFlags) return false;
|
if(l.mGroupFlags != r.mGroupFlags) return false;
|
||||||
if(l.mPublishTs != r.mPublishTs) return false;
|
if(l.mPublishTs != r.mPublishTs) return false;
|
||||||
|
if(l.mSignFlags != r.mSignFlags) return false;
|
||||||
if(l.mAuthorId != r.mAuthorId) return false;
|
if(l.mAuthorId != r.mAuthorId) return false;
|
||||||
if(l.mGroupName != r.mGroupName) return false;
|
if(l.mGroupName != r.mGroupName) return false;
|
||||||
if(l.mGroupId != r.mGroupId) return false;
|
if(l.mGroupId != r.mGroupId) return false;
|
||||||
|
@ -17,12 +17,12 @@ TEST(libretroshare_gxs, RsGxsData)
|
|||||||
msgMeta1.clear();
|
msgMeta1.clear();
|
||||||
init_item(&msgMeta1);
|
init_item(&msgMeta1);
|
||||||
|
|
||||||
uint32_t pktsize = grpMeta1.serial_size();
|
uint32_t pktsize = grpMeta1.serial_size(RS_GXS_GRP_META_DATA_CURRENT_API_VERSION);
|
||||||
char grp_data[pktsize];
|
char grp_data[pktsize];
|
||||||
|
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
||||||
ok &= grpMeta1.serialise(grp_data, pktsize);
|
ok &= grpMeta1.serialise(grp_data, pktsize, RS_GXS_GRP_META_DATA_CURRENT_API_VERSION);
|
||||||
grpMeta2.clear();
|
grpMeta2.clear();
|
||||||
ok &= grpMeta2.deserialise(grp_data, pktsize);
|
ok &= grpMeta2.deserialise(grp_data, pktsize);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user