Mercurial > pidgin
comparison libpurple/protocols/qq/qq_process.c @ 25515:7f903e67a995
2009.02.09 - Chengming Wang <tiger2007532246(at)gmail.com>
* Added buddy 'get memo', 'remove memo', 'upload memo' functions
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Mon, 09 Feb 2009 15:49:14 +0000 |
parents | 1300601041ac |
children | 59ed7712be5e |
comparison
equal
deleted
inserted
replaced
25436:cddd7961901f | 25515:7f903e67a995 |
---|---|
45 #include "qq_process.h" | 45 #include "qq_process.h" |
46 #include "packet_parse.h" | 46 #include "packet_parse.h" |
47 #include "qq_network.h" | 47 #include "qq_network.h" |
48 #include "qq_trans.h" | 48 #include "qq_trans.h" |
49 #include "utils.h" | 49 #include "utils.h" |
50 #include "buddy_memo.h" | |
50 | 51 |
51 enum { | 52 enum { |
52 QQ_ROOM_CMD_REPLY_OK = 0x00, | 53 QQ_ROOM_CMD_REPLY_OK = 0x00, |
53 QQ_ROOM_CMD_REPLY_SEARCH_ERROR = 0x02, | 54 QQ_ROOM_CMD_REPLY_SEARCH_ERROR = 0x02, |
54 QQ_ROOM_CMD_REPLY_NOT_MEMBER = 0x0a | 55 QQ_ROOM_CMD_REPLY_NOT_MEMBER = 0x0a |
1140 qq_process_add_buddy_auth_ex(gc, data, data_len, ship32); | 1141 qq_process_add_buddy_auth_ex(gc, data, data_len, ship32); |
1141 break; | 1142 break; |
1142 case QQ_CMD_BUDDY_CHECK_CODE: | 1143 case QQ_CMD_BUDDY_CHECK_CODE: |
1143 qq_process_buddy_check_code(gc, data, data_len); | 1144 qq_process_buddy_check_code(gc, data, data_len); |
1144 break; | 1145 break; |
1146 case QQ_CMD_BUDDY_MEMO: | |
1147 purple_debug_info("QQ", "Receive memo from server!\n"); | |
1148 qq_process_get_buddy_memo( gc, data, data_len ); | |
1149 break; | |
1145 default: | 1150 default: |
1146 process_unknow_cmd(gc, _("Unknown CLIENT CMD"), data, data_len, cmd, seq); | 1151 process_unknow_cmd(gc, _("Unknown CLIENT CMD"), data, data_len, cmd, seq); |
1147 is_unknow = TRUE; | 1152 is_unknow = TRUE; |
1148 break; | 1153 break; |
1149 } | 1154 } |