Changeset 0cb71a6


Ignore:
Timestamp:
2010-03-21T16:57:20Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
437bd9b
Parents:
85693e6
Message:

I renamed GAIM_INPUT_* to something else in this branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dcc.c

    r85693e6 r0cb71a6  
    154154
    155155        /* watch */
    156         df->watch_in = b_input_add( df->fd, GAIM_INPUT_READ, dccs_send_proto, df );
     156        df->watch_in = b_input_add( df->fd, B_EV_IO_READ, dccs_send_proto, df );
    157157
    158158        df->ic->irc->file_transfers = g_slist_prepend( df->ic->irc->file_transfers, file );
     
    267267        file_transfer_t *file = df->ft;
    268268       
    269         if( ( cond & GAIM_INPUT_READ ) &&
     269        if( ( cond & B_EV_IO_READ ) &&
    270270            ( file->status & FT_STATUS_LISTENING ) )
    271271        {       
     
    287287
    288288                /* reschedule for reading on new fd */
    289                 df->watch_in = b_input_add( fd, GAIM_INPUT_READ, dccs_send_proto, df );
     289                df->watch_in = b_input_add( fd, B_EV_IO_READ, dccs_send_proto, df );
    290290
    291291                return FALSE;
    292292        }
    293293
    294         if( cond & GAIM_INPUT_READ )
     294        if( cond & B_EV_IO_READ )
    295295        {
    296296                int ret;
     
    364364
    365365        /* watch */
    366         df->watch_out = b_input_add( df->fd, GAIM_INPUT_WRITE, dccs_recv_proto, df );
     366        df->watch_out = b_input_add( df->fd, B_EV_IO_WRITE, dccs_recv_proto, df );
    367367        ft->write_request = dccs_recv_write_request;
    368368
     
    377377        file_transfer_t *ft = df->ft;
    378378
    379         if( ( cond & GAIM_INPUT_WRITE ) &&
     379        if( ( cond & B_EV_IO_WRITE ) &&
    380380            ( ft->status & FT_STATUS_CONNECTING ) )
    381381        {
    382382                ft->status = FT_STATUS_TRANSFERRING;
    383383
    384                 //df->watch_in = b_input_add( df->fd, GAIM_INPUT_READ, dccs_recv_proto, df );
     384                //df->watch_in = b_input_add( df->fd, B_EV_IO_READ, dccs_recv_proto, df );
    385385
    386386                df->watch_out = 0;
     
    388388        }
    389389
    390         if( cond & GAIM_INPUT_READ )
     390        if( cond & B_EV_IO_READ )
    391391        {
    392392                int ret, done;
     
    445445                return dcc_abort( df, "BUG: write_request() called while watching" );
    446446
    447         df->watch_in = b_input_add( df->fd, GAIM_INPUT_READ, dccs_recv_proto, df );
     447        df->watch_in = b_input_add( df->fd, B_EV_IO_READ, dccs_recv_proto, df );
    448448
    449449        return TRUE;
     
    488488
    489489        if( df->bytes_sent < df->ft->file_size )
    490                 df->watch_out = b_input_add( df->fd, GAIM_INPUT_WRITE, dccs_send_can_write, df );
     490                df->watch_out = b_input_add( df->fd, B_EV_IO_WRITE, dccs_send_can_write, df );
    491491
    492492        return TRUE;
Note: See TracChangeset for help on using the changeset viewer.