Mercurial > pidgin
comparison libpurple/protocols/qq/group_im.c @ 23051:55f986ccbb6a
patch-05-reconnect-and-code-cleanup
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Tue, 24 Jun 2008 12:28:38 +0000 |
parents | 190bc4ecf6c3 |
children | 1c50f12b1c52 |
comparison
equal
deleted
inserted
replaced
23050:51dbe83ebbd3 | 23051:55f986ccbb6a |
---|---|
108 gchar *nombre; | 108 gchar *nombre; |
109 gint bytes = 0; | 109 gint bytes = 0; |
110 | 110 |
111 g_return_if_fail(internal_group_id > 0 && data != NULL && len > 0); | 111 g_return_if_fail(internal_group_id > 0 && data != NULL && len > 0); |
112 | 112 |
113 // Fixme: check length here | 113 /* FIXME: check length here */ |
114 | 114 |
115 bytes += qq_get32(&external_group_id, data + bytes); | 115 bytes += qq_get32(&external_group_id, data + bytes); |
116 bytes += qq_get8(&group_type, data + bytes); | 116 bytes += qq_get8(&group_type, data + bytes); |
117 bytes += qq_get32(&user_uid, data + bytes); | 117 bytes += qq_get32(&user_uid, data + bytes); |
118 | 118 |
158 qq_group *group; | 158 qq_group *group; |
159 gint bytes = 0; | 159 gint bytes = 0; |
160 | 160 |
161 g_return_if_fail(data != NULL && len > 0); | 161 g_return_if_fail(data != NULL && len > 0); |
162 | 162 |
163 // Fixme: check length here | 163 /* FIXME: check length here */ |
164 | 164 |
165 bytes += qq_get32(&external_group_id, data + bytes); | 165 bytes += qq_get32(&external_group_id, data + bytes); |
166 bytes += qq_get8(&group_type, data + bytes); | 166 bytes += qq_get8(&group_type, data + bytes); |
167 bytes += qq_get32(&admin_uid, data + bytes); | 167 bytes += qq_get32(&admin_uid, data + bytes); |
168 | 168 |
196 qq_group *group; | 196 qq_group *group; |
197 gint bytes = 0; | 197 gint bytes = 0; |
198 | 198 |
199 g_return_if_fail(data != NULL && len > 0); | 199 g_return_if_fail(data != NULL && len > 0); |
200 | 200 |
201 // Fixme: check length here | 201 /* FIXME: check length here */ |
202 | 202 |
203 bytes += qq_get32(&external_group_id, data + bytes); | 203 bytes += qq_get32(&external_group_id, data + bytes); |
204 bytes += qq_get8(&group_type, data + bytes); | 204 bytes += qq_get8(&group_type, data + bytes); |
205 bytes += qq_get32(&admin_uid, data + bytes); | 205 bytes += qq_get32(&admin_uid, data + bytes); |
206 | 206 |
232 qq_group *group; | 232 qq_group *group; |
233 gint bytes = 0; | 233 gint bytes = 0; |
234 | 234 |
235 g_return_if_fail(data != NULL && len > 0); | 235 g_return_if_fail(data != NULL && len > 0); |
236 | 236 |
237 // Fixme: check length here | 237 /* FIXME: check length here */ |
238 | 238 |
239 bytes += qq_get32(&external_group_id, data + bytes); | 239 bytes += qq_get32(&external_group_id, data + bytes); |
240 bytes += qq_get8(&group_type, data + bytes); | 240 bytes += qq_get8(&group_type, data + bytes); |
241 bytes += qq_get32(&uid, data + bytes); | 241 bytes += qq_get32(&uid, data + bytes); |
242 | 242 |
263 gchar *msg; | 263 gchar *msg; |
264 gint bytes = 0; | 264 gint bytes = 0; |
265 | 265 |
266 g_return_if_fail(data != NULL && len > 0); | 266 g_return_if_fail(data != NULL && len > 0); |
267 | 267 |
268 // Fixme: check length here | 268 /* FIXME: check length here */ |
269 | 269 |
270 bytes += qq_get32(&external_group_id, data + bytes); | 270 bytes += qq_get32(&external_group_id, data + bytes); |
271 bytes += qq_get8(&group_type, data + bytes); | 271 bytes += qq_get8(&group_type, data + bytes); |
272 bytes += qq_get32(&uid, data + bytes); | 272 bytes += qq_get32(&uid, data + bytes); |
273 | 273 |
305 gint skip_len; | 305 gint skip_len; |
306 gint bytes = 0; | 306 gint bytes = 0; |
307 | 307 |
308 g_return_if_fail(data != NULL && data_len > 0); | 308 g_return_if_fail(data != NULL && data_len > 0); |
309 | 309 |
310 // Fixme: check length here | 310 /* FIXME: check length here */ |
311 | 311 |
312 qd = (qq_data *) gc->proto_data; | 312 qd = (qq_data *) gc->proto_data; |
313 | 313 |
314 qq_hex_dump(PURPLE_DEBUG_INFO, "QQ", | 314 qq_hex_dump(PURPLE_DEBUG_INFO, "QQ", |
315 data, data_len, | 315 data, data_len, |