Mercurial > pidgin.yaz
comparison libgaim/protocols/qq/send_file.c @ 14242:85f3808ca472
[gaim-migrate @ 16924]
Got rid of a bunch of warnings.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Sun, 20 Aug 2006 23:16:44 +0000 |
parents | 60b1bc8dbf37 |
children | 473b225e7352 |
comparison
equal
deleted
inserted
replaced
14241:c54ea2572de9 | 14242:85f3808ca472 |
---|---|
164 size = _qq_xfer_udp_recv(buf, 1500, xfer); | 164 size = _qq_xfer_udp_recv(buf, 1500, xfer); |
165 qq_process_recv_file(gc, buf, size); | 165 qq_process_recv_file(gc, buf, size); |
166 } | 166 } |
167 | 167 |
168 /* start file transfer process */ | 168 /* start file transfer process */ |
169 /* | |
169 static void _qq_xfer_send_start (GaimXfer *xfer) | 170 static void _qq_xfer_send_start (GaimXfer *xfer) |
170 { | 171 { |
171 GaimAccount *account; | 172 GaimAccount *account; |
172 GaimConnection *gc; | 173 GaimConnection *gc; |
173 ft_info *info; | 174 ft_info *info; |
174 | 175 |
175 account = gaim_xfer_get_account(xfer); | 176 account = gaim_xfer_get_account(xfer); |
176 gc = gaim_account_get_connection(account); | 177 gc = gaim_account_get_connection(account); |
177 info = (ft_info *) xfer->data; | 178 info = (ft_info *) xfer->data; |
178 } | 179 } |
179 | 180 */ |
181 | |
182 /* | |
180 static void _qq_xfer_send_ack (GaimXfer *xfer, const char *buffer, size_t len) | 183 static void _qq_xfer_send_ack (GaimXfer *xfer, const char *buffer, size_t len) |
181 { | 184 { |
182 GaimAccount *account; | 185 GaimAccount *account; |
183 GaimConnection *gc; | 186 GaimConnection *gc; |
184 | 187 |
185 account = gaim_xfer_get_account(xfer); | 188 account = gaim_xfer_get_account(xfer); |
186 gc = gaim_account_get_connection(account); | 189 gc = gaim_account_get_connection(account); |
187 qq_process_recv_file(gc, (guint8 *) buffer, len); | 190 qq_process_recv_file(gc, (guint8 *) buffer, len); |
188 } | 191 } |
189 | 192 */ |
193 | |
194 /* | |
190 static void _qq_xfer_recv_start(GaimXfer *xfer) | 195 static void _qq_xfer_recv_start(GaimXfer *xfer) |
191 { | 196 { |
192 } | 197 } |
198 */ | |
193 | 199 |
194 static void _qq_xfer_end(GaimXfer *xfer) | 200 static void _qq_xfer_end(GaimXfer *xfer) |
195 { | 201 { |
196 ft_info *info; | 202 ft_info *info; |
197 g_return_if_fail(xfer != NULL && xfer->data != NULL); | 203 g_return_if_fail(xfer != NULL && xfer->data != NULL); |
267 bytes += create_packet_w (raw_data, cursor, info->local_minor_port); | 273 bytes += create_packet_w (raw_data, cursor, info->local_minor_port); |
268 return bytes; | 274 return bytes; |
269 } | 275 } |
270 | 276 |
271 | 277 |
272 extern gchar *_gen_session_md5(gint uid, guint8 *session_key); | |
273 | |
274 /* fill in the common information of file transfer */ | 278 /* fill in the common information of file transfer */ |
275 static gint _qq_create_packet_file_header | 279 static gint _qq_create_packet_file_header |
276 (guint8 *raw_data, guint8 **cursor, guint32 to_uid, guint16 message_type, qq_data *qd, gboolean seq_ack) | 280 (guint8 *raw_data, guint8 **cursor, guint32 to_uid, guint16 message_type, qq_data *qd, gboolean seq_ack) |
277 { | 281 { |
278 gint bytes; | 282 gint bytes; |
279 time_t now; | 283 time_t now; |
280 gchar *md5; | 284 guint8 *md5; |
281 guint16 seq; | 285 guint16 seq; |
282 ft_info *info; | 286 ft_info *info; |
283 | 287 |
284 bytes = 0; | 288 bytes = 0; |
285 now = time(NULL); | 289 now = time(NULL); |
932 | 936 |
933 qd->xfer = xfer; | 937 qd->xfer = xfer; |
934 gaim_xfer_request (xfer); | 938 gaim_xfer_request (xfer); |
935 } | 939 } |
936 | 940 |
941 /* | |
937 static void qq_send_packet_request_key(GaimConnection *gc, guint8 key) | 942 static void qq_send_packet_request_key(GaimConnection *gc, guint8 key) |
938 { | 943 { |
939 qq_send_cmd(gc, QQ_CMD_REQUEST_KEY, TRUE, 0, TRUE, &key, 1); | 944 qq_send_cmd(gc, QQ_CMD_REQUEST_KEY, TRUE, 0, TRUE, &key, 1); |
940 } | 945 } |
941 | 946 |
942 static void qq_process_recv_request_key(GaimConnection *gc) | 947 static void qq_process_recv_request_key(GaimConnection *gc) |
943 { | 948 { |
944 } | 949 } |
950 */ |