fix compile for new gxs metadata serialisation

This commit is contained in:
electron128 2015-12-20 17:24:13 +01:00
parent a6a3d66a83
commit 8f64df02da
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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);