- Timestamp:
- 2010-06-07T14:31:07Z (14 years ago)
- Branches:
- master
- Children:
- 56699f0
- Parents:
- 0d9d53e (diff), 1fdb0a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dcc.c
r0d9d53e r4aa0f6b 116 116 117 117 /* watch */ 118 df->watch_in = b_input_add( df->fd, GAIM_INPUT_READ, dccs_send_proto, df );118 df->watch_in = b_input_add( df->fd, B_EV_IO_READ, dccs_send_proto, df ); 119 119 120 120 irc->file_transfers = g_slist_prepend( irc->file_transfers, file ); … … 228 228 file_transfer_t *file = df->ft; 229 229 230 if( ( cond & GAIM_INPUT_READ ) &&230 if( ( cond & B_EV_IO_READ ) && 231 231 ( file->status & FT_STATUS_LISTENING ) ) 232 232 { … … 248 248 249 249 /* reschedule for reading on new fd */ 250 df->watch_in = b_input_add( fd, GAIM_INPUT_READ, dccs_send_proto, df );250 df->watch_in = b_input_add( fd, B_EV_IO_READ, dccs_send_proto, df ); 251 251 252 252 return FALSE; 253 253 } 254 254 255 if( cond & GAIM_INPUT_READ )255 if( cond & B_EV_IO_READ ) 256 256 { 257 257 int ret; … … 325 325 326 326 /* watch */ 327 df->watch_out = b_input_add( df->fd, GAIM_INPUT_WRITE, dccs_recv_proto, df );327 df->watch_out = b_input_add( df->fd, B_EV_IO_WRITE, dccs_recv_proto, df ); 328 328 ft->write_request = dccs_recv_write_request; 329 329 … … 338 338 file_transfer_t *ft = df->ft; 339 339 340 if( ( cond & GAIM_INPUT_WRITE ) &&340 if( ( cond & B_EV_IO_WRITE ) && 341 341 ( ft->status & FT_STATUS_CONNECTING ) ) 342 342 { 343 343 ft->status = FT_STATUS_TRANSFERRING; 344 344 345 //df->watch_in = b_input_add( df->fd, GAIM_INPUT_READ, dccs_recv_proto, df );345 //df->watch_in = b_input_add( df->fd, B_EV_IO_READ, dccs_recv_proto, df ); 346 346 347 347 df->watch_out = 0; … … 349 349 } 350 350 351 if( cond & GAIM_INPUT_READ )351 if( cond & B_EV_IO_READ ) 352 352 { 353 353 int ret, done; … … 406 406 return dcc_abort( df, "BUG: write_request() called while watching" ); 407 407 408 df->watch_in = b_input_add( df->fd, GAIM_INPUT_READ, dccs_recv_proto, df );408 df->watch_in = b_input_add( df->fd, B_EV_IO_READ, dccs_recv_proto, df ); 409 409 410 410 return TRUE; … … 449 449 450 450 if( df->bytes_sent < df->ft->file_size ) 451 df->watch_out = b_input_add( df->fd, GAIM_INPUT_WRITE, dccs_send_can_write, df );451 df->watch_out = b_input_add( df->fd, B_EV_IO_WRITE, dccs_send_can_write, df ); 452 452 453 453 return TRUE; … … 565 565 return NULL; 566 566 } 567
Note: See TracChangeset
for help on using the changeset viewer.