From 4bfbaef057a1eb8f9659d415569eaee0e50fb949 Mon Sep 17 00:00:00 2001 From: sehraf Date: Sat, 4 Apr 2020 15:11:29 +0200 Subject: [PATCH] fix last commit --- libretroshare/src/retroshare/rsmsgs.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/retroshare/rsmsgs.h b/libretroshare/src/retroshare/rsmsgs.h index 746a3018c..7304e6b85 100644 --- a/libretroshare/src/retroshare/rsmsgs.h +++ b/libretroshare/src/retroshare/rsmsgs.h @@ -356,7 +356,7 @@ struct RsMailStatusEvent : RsEvent #define RS_DISTANT_CHAT_CONTACT_PERMISSION_FLAG_FILTER_NON_CONTACTS 0x0001 #define RS_DISTANT_CHAT_CONTACT_PERMISSION_FLAG_FILTER_EVERYBODY 0x0002 -struct DistantChatPeerInfo +struct DistantChatPeerInfo : RsSerializable { DistantChatPeerInfo() : status(0),pending_items(0) {} @@ -365,6 +365,16 @@ struct DistantChatPeerInfo DistantChatPeerId peer_id ; // this is the tunnel id actually uint32_t status ; // see the values in rsmsgs.h uint32_t pending_items; // items not sent, waiting for a tunnel + + ///* @see RsEvent @see RsSerializable + void serial_process( RsGenericSerializer::SerializeJob j, RsGenericSerializer::SerializeContext& ctx ) override + { + RS_SERIAL_PROCESS(to_id); + RS_SERIAL_PROCESS(own_id); + RS_SERIAL_PROCESS(peer_id); + RS_SERIAL_PROCESS(status); + RS_SERIAL_PROCESS(pending_items); + } }; // Identifier for an chat endpoint like @@ -990,7 +1000,7 @@ virtual bool initiateDistantChatConnexion( * @param[out] info distant chat info * @return true on success */ - virtual bool getDistantChatStatus(const DistantChatPeerId& pid,DistantChatPeerInfo& info)=0; + virtual bool getDistantChatStatus(const DistantChatPeerId& pid, DistantChatPeerInfo& info)=0; virtual bool closeDistantChatConnexion(const DistantChatPeerId& pid)=0; /**