summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-02 23:42:36 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-02 23:42:36 +0300
commit0e8f5a3aa5f5e73b413c5646444751783e367f2b (patch)
treeca7479a4b239d1c024013bf5a87d3e95c4edb8d8 /protocols/FacebookRM/src/proto.h
parenta5fb0cc691901e986e25f5a724c0024ff8323957 (diff)
Facebook: unneeded thread removed
Diffstat (limited to 'protocols/FacebookRM/src/proto.h')
-rw-r--r--protocols/FacebookRM/src/proto.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/proto.h b/protocols/FacebookRM/src/proto.h
index 03c3920150..98262699ff 100644
--- a/protocols/FacebookRM/src/proto.h
+++ b/protocols/FacebookRM/src/proto.h
@@ -26,8 +26,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class FacebookProto : public PROTO<FacebookProto>
{
+ friend class facebook_client;
+
bool IgnoreDuplicates(const std::string &mid);
- bool ProcessSpecialMessage(std::vector<facebook_message>* messages, const JSONNode &meta_, MessageType messageType, const std::string &messageData = "");
+ bool ProcessSpecialMessage(std::vector<facebook_message> &messages, const JSONNode &meta_, MessageType messageType, const std::string &messageData = "");
void ParseAttachments(std::string &message_text, const JSONNode &delta_, std::string other_user_fbid, bool legacy);
void ParseMessageType(facebook_message &message, const JSONNode &log_type_, const JSONNode &log_body_, const JSONNode &log_data_);
@@ -36,8 +38,8 @@ class FacebookProto : public PROTO<FacebookProto>
int ParseChatInfo(std::string* data, facebook_chatroom* fbc);
int ParseChatParticipants(std::string *data, std::map<std::string, chatroom_participant>* participants);
int ParseFriends(std::string*, std::map< std::string, facebook_user* >*, bool);
- int ParseHistory(std::string* data, std::vector<facebook_message>* messages, std::string* firstTimestamp);
- int ParseMessages(std::string*, std::vector< facebook_message >*);
+ int ParseHistory(std::string* data, std::vector<facebook_message> &messages, std::string *firstTimestamp);
+ int ParseMessages(std::string &data, std::vector< facebook_message >&);
int ParseMessagesCount(std::string *data, int *messagesCount, int *unreadCount);
int ParseNotifications(std::string*, std::map< std::string, facebook_notification* >*);
int ParseThreadInfo(std::string* data, std::string* user_id);
@@ -184,7 +186,6 @@ public:
// Processing threads
void __cdecl ProcessFriendList(void*);
- void __cdecl ProcessMessages(void*);
void __cdecl ProcessUnreadMessages(void*);
void __cdecl ProcessUnreadMessage(void*);
void __cdecl ProcessFeeds(void*);