From d265e61b061c2d465c50f1ce29a17df684f88c9b Mon Sep 17 00:00:00 2001 From: b1rdG <61605133+b1rdG@users.noreply.github.com> Date: Fri, 17 Apr 2020 21:56:58 +0000 Subject: [PATCH] Expose JSON API closeDistantChatConnexion and initiateDistantChatConnexion --- libretroshare/src/retroshare/rsmsgs.h | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/retroshare/rsmsgs.h b/libretroshare/src/retroshare/rsmsgs.h index 7304e6b85..be00c0d5c 100644 --- a/libretroshare/src/retroshare/rsmsgs.h +++ b/libretroshare/src/retroshare/rsmsgs.h @@ -987,8 +987,18 @@ virtual void getOwnAvatarData(unsigned char *& data,int& size) = 0 ; virtual uint32_t getDistantChatPermissionFlags()=0 ; virtual bool setDistantChatPermissionFlags(uint32_t flags)=0 ; - -virtual bool initiateDistantChatConnexion( + + /** + * @brief initiateDistantChatConnexion initiate a connexion for a distant chat + * @jsonapi{development} + * @param[in] to_pid distant chat id + * @param[in] from_pid distant chat id + * @param[out] pid distant chat id + * @param[out] error_code distant chat info + * @param[in] notify distant chat info + * @return true on success + */ + virtual bool initiateDistantChatConnexion( const RsGxsId& to_pid, const RsGxsId& from_pid, DistantChatPeerId& pid, uint32_t& error_code, bool notify = true ) = 0; @@ -1001,7 +1011,14 @@ virtual bool initiateDistantChatConnexion( * @return true on success */ virtual bool getDistantChatStatus(const DistantChatPeerId& pid, DistantChatPeerInfo& info)=0; -virtual bool closeDistantChatConnexion(const DistantChatPeerId& pid)=0; + + /** + * @brief closeDistantChatConnexion + * @jsonapi{development} + * @param[in] pid distant chat id + * @return true on success + */ + virtual bool closeDistantChatConnexion(const DistantChatPeerId& pid)=0; /** * @brief MessageSend