Mercurial > pidgin
comparison libpurple/protocols/qq/qq_process.c @ 31191:4deef745de87
2010.01.23 - flos <lonicerae(at)gmail.com>
* added an option to force incoming message in chat room to use a default font instead of the font in message itself
2010.01.18 - flos <lonicerae(at)gmail.com>
* added type 'UPDCLS' and 'UID' for implementing business logic layer
2010.01.13 - ccpaging <ccpaging(at)gmail.com>
* qq2009-1 patch from ccpaging
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Sun, 06 Feb 2011 05:23:22 +0000 |
parents | 351d07aefb09 |
children |
comparison
equal
deleted
inserted
replaced
31190:f0e6aaf942f8 | 31191:4deef745de87 |
---|---|
252 { | 252 { |
253 qq_data *qd; | 253 qq_data *qd; |
254 gint bytes; | 254 gint bytes; |
255 | 255 |
256 struct { | 256 struct { |
257 guint32 uid_from; | 257 UID uid_from; |
258 guint32 uid_to; | 258 UID uid_to; |
259 guint32 seq; | 259 guint32 seq; |
260 struct in_addr ip_from; | 260 struct in_addr ip_from; |
261 guint16 port_from; | 261 guint16 port_from; |
262 guint16 msg_type; | 262 guint16 msg_type; |
263 } header; | 263 } header; |
723 qd->online_last_update = time(NULL); | 723 qd->online_last_update = time(NULL); |
724 } | 724 } |
725 | 725 |
726 void qq_proc_room_cmds(PurpleConnection *gc, guint16 seq, | 726 void qq_proc_room_cmds(PurpleConnection *gc, guint16 seq, |
727 guint8 room_cmd, guint32 room_id, guint8 *rcved, gint rcved_len, | 727 guint8 room_cmd, guint32 room_id, guint8 *rcved, gint rcved_len, |
728 guint32 update_class, guint32 ship32) | 728 UPDCLS update_class, guint32 ship32) |
729 { | 729 { |
730 qq_data *qd; | 730 qq_data *qd; |
731 guint8 *data; | 731 guint8 *data; |
732 gint data_len; | 732 gint data_len; |
733 qq_room_data *rmd; | 733 qq_room_data *rmd; |
859 qq_update_room(gc, room_cmd, room_id); | 859 qq_update_room(gc, room_cmd, room_id); |
860 } | 860 } |
861 } | 861 } |
862 | 862 |
863 guint8 qq_proc_login_cmds(PurpleConnection *gc, guint16 cmd, guint16 seq, | 863 guint8 qq_proc_login_cmds(PurpleConnection *gc, guint16 cmd, guint16 seq, |
864 guint8 *rcved, gint rcved_len, guint32 update_class, guint32 ship32) | 864 guint8 *rcved, gint rcved_len, UPDCLS update_class, guint32 ship32) |
865 { | 865 { |
866 qq_data *qd; | 866 qq_data *qd; |
867 guint8 *data = NULL; | 867 guint8 *data = NULL; |
868 gint data_len = 0; | 868 gint data_len = 0; |
869 guint ret_8 = QQ_LOGIN_REPLY_ERR; | 869 guint ret_8 = QQ_LOGIN_REPLY_ERR; |
1011 } | 1011 } |
1012 return QQ_LOGIN_REPLY_OK; | 1012 return QQ_LOGIN_REPLY_OK; |
1013 } | 1013 } |
1014 | 1014 |
1015 void qq_proc_client_cmds(PurpleConnection *gc, guint16 cmd, guint16 seq, | 1015 void qq_proc_client_cmds(PurpleConnection *gc, guint16 cmd, guint16 seq, |
1016 guint8 *rcved, gint rcved_len, guint32 update_class, guint32 ship32) | 1016 guint8 *rcved, gint rcved_len, UPDCLS update_class, guint32 ship32) |
1017 { | 1017 { |
1018 qq_data *qd; | 1018 qq_data *qd; |
1019 | 1019 |
1020 guint8 *data; | 1020 guint8 *data; |
1021 gint data_len; | 1021 gint data_len; |