Skip to content

Commit 2ed36b6

Browse files
authored
Merge pull request #319 from defnax/fix-rsstatus-api
fix rsstatus api
2 parents 92cf193 + 0733e84 commit 2ed36b6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/retroshare/rsstatus.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ enum class RsStatusValue: int32_t {
5050
/*!
5151
* data object used for peer status information
5252
*/
53-
class StatusInfo
53+
class StatusInfo : public RsSerializable
5454
{
5555
public:
5656
StatusInfo() : status(RsStatusValue::RS_STATUS_OFFLINE), time_stamp(0) {}
@@ -59,6 +59,13 @@ class StatusInfo
5959
RsPeerId id;
6060
RsStatusValue status;
6161
rstime_t time_stamp; /// for owner time set, and for their peers time sent
62+
63+
void serial_process( RsGenericSerializer::SerializeJob j, RsGenericSerializer::SerializeContext& ctx ) override
64+
{
65+
RS_SERIAL_PROCESS(id);
66+
RS_SERIAL_PROCESS(status);
67+
RS_SERIAL_PROCESS(time_stamp);
68+
}
6269
};
6370

6471

0 commit comments

Comments
 (0)