mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05:00
Fix JSON API compilation after rebasing on master
This commit is contained in:
parent
f54fb046e4
commit
e406a1fb8b
@ -1970,3 +1970,4 @@ bool RsGxsDataAccess::checkMsgFilter(
|
||||
}
|
||||
|
||||
GxsGroupStatistic::~GxsGroupStatistic() = default;
|
||||
GxsServiceStatistic::~GxsServiceStatistic() = default;
|
||||
|
@ -230,24 +230,13 @@ struct GxsGroupStatistic : RsSerializable
|
||||
~GxsGroupStatistic() override;
|
||||
};
|
||||
|
||||
class GxsServiceStatistic
|
||||
struct GxsServiceStatistic : RsSerializable
|
||||
{
|
||||
public:
|
||||
GxsServiceStatistic()
|
||||
{
|
||||
mNumMsgs = 0;
|
||||
mNumGrps = 0;
|
||||
mSizeOfMsgs = 0;
|
||||
mSizeOfGrps = 0;
|
||||
mNumGrpsSubscribed = 0;
|
||||
mNumThreadMsgsNew = 0;
|
||||
mNumThreadMsgsUnread = 0;
|
||||
mNumChildMsgsNew = 0;
|
||||
mNumChildMsgsUnread = 0;
|
||||
mSizeStore = 0;
|
||||
}
|
||||
GxsServiceStatistic() :
|
||||
mNumMsgs(0), mNumGrps(0), mSizeOfMsgs(0), mSizeOfGrps(0),
|
||||
mNumGrpsSubscribed(0), mNumThreadMsgsNew(0), mNumThreadMsgsUnread(0),
|
||||
mNumChildMsgsNew(0), mNumChildMsgsUnread(0), mSizeStore(0) {}
|
||||
|
||||
public:
|
||||
uint32_t mNumMsgs;
|
||||
uint32_t mNumGrps;
|
||||
uint32_t mSizeOfMsgs;
|
||||
@ -258,6 +247,24 @@ public:
|
||||
uint32_t mNumChildMsgsNew;
|
||||
uint32_t mNumChildMsgsUnread;
|
||||
uint32_t mSizeStore;
|
||||
|
||||
/// @see RsSerializable
|
||||
void serial_process( RsGenericSerializer::SerializeJob j,
|
||||
RsGenericSerializer::SerializeContext& ctx ) override
|
||||
{
|
||||
RS_SERIAL_PROCESS(mNumMsgs);
|
||||
RS_SERIAL_PROCESS(mNumGrps);
|
||||
RS_SERIAL_PROCESS(mSizeOfMsgs);
|
||||
RS_SERIAL_PROCESS(mSizeOfGrps);
|
||||
RS_SERIAL_PROCESS(mNumGrpsSubscribed);
|
||||
RS_SERIAL_PROCESS(mNumThreadMsgsNew);
|
||||
RS_SERIAL_PROCESS(mNumThreadMsgsUnread);
|
||||
RS_SERIAL_PROCESS(mNumChildMsgsNew);
|
||||
RS_SERIAL_PROCESS(mNumChildMsgsUnread);
|
||||
RS_SERIAL_PROCESS(mSizeStore);
|
||||
}
|
||||
|
||||
~GxsServiceStatistic() override;
|
||||
};
|
||||
|
||||
class RS_DEPRECATED RsGxsGroupUpdateMeta
|
||||
|
Loading…
Reference in New Issue
Block a user