Changeset 4aa0f6b for dcc.c


Ignore:
Timestamp:
2010-06-07T14:31:07Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
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.
Message:

Merging killerbee stuff, bringing all the bleeding-edge stuff together.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dcc.c

    r0d9d53e r4aa0f6b  
    116116
    117117        /* 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 );
    119119
    120120        irc->file_transfers = g_slist_prepend( irc->file_transfers, file );
     
    228228        file_transfer_t *file = df->ft;
    229229       
    230         if( ( cond & GAIM_INPUT_READ ) &&
     230        if( ( cond & B_EV_IO_READ ) &&
    231231            ( file->status & FT_STATUS_LISTENING ) )
    232232        {       
     
    248248
    249249                /* 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 );
    251251
    252252                return FALSE;
    253253        }
    254254
    255         if( cond & GAIM_INPUT_READ )
     255        if( cond & B_EV_IO_READ )
    256256        {
    257257                int ret;
     
    325325
    326326        /* 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 );
    328328        ft->write_request = dccs_recv_write_request;
    329329
     
    338338        file_transfer_t *ft = df->ft;
    339339
    340         if( ( cond & GAIM_INPUT_WRITE ) &&
     340        if( ( cond & B_EV_IO_WRITE ) &&
    341341            ( ft->status & FT_STATUS_CONNECTING ) )
    342342        {
    343343                ft->status = FT_STATUS_TRANSFERRING;
    344344
    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 );
    346346
    347347                df->watch_out = 0;
     
    349349        }
    350350
    351         if( cond & GAIM_INPUT_READ )
     351        if( cond & B_EV_IO_READ )
    352352        {
    353353                int ret, done;
     
    406406                return dcc_abort( df, "BUG: write_request() called while watching" );
    407407
    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 );
    409409
    410410        return TRUE;
     
    449449
    450450        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 );
    452452
    453453        return TRUE;
     
    565565        return NULL;
    566566}
    567 
Note: See TracChangeset for help on using the changeset viewer.