Changeset e046390 for irc.c


Ignore:
Timestamp:
2009-10-10T23:25:54Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c5c18c1
Parents:
0cbef26
Message:

Make purple use BitlBee's event handling API. Since the APIs never really
diverged too much this is fairly transparent. I did rename and redefine
GAIM_INPUT_* variables to really make it work without adding another stupid
layer in between.

One problem left, the new libpurple input API doesn't care about return
values. Fixing that in the next CL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r0cbef26 re046390  
    9090        sock_make_nonblocking( irc->fd );
    9191       
    92         irc->r_watch_source_id = b_input_add( irc->fd, GAIM_INPUT_READ, bitlbee_io_current_client_read, irc );
     92        irc->r_watch_source_id = b_input_add( irc->fd, B_EV_IO_READ, bitlbee_io_current_client_read, irc );
    9393       
    9494        irc->status = USTATUS_OFFLINE;
     
    653653                   in the event queue. */
    654654                /* Really can't be done as long as the code doesn't do error checking very well:
    655                 if( bitlbee_io_current_client_write( irc, irc->fd, GAIM_INPUT_WRITE ) ) */
     655                if( bitlbee_io_current_client_write( irc, irc->fd, B_EV_IO_WRITE ) ) */
    656656               
    657657                /* So just always do it via the event handler. */
    658                 irc->w_watch_source_id = b_input_add( irc->fd, GAIM_INPUT_WRITE, bitlbee_io_current_client_write, irc );
     658                irc->w_watch_source_id = b_input_add( irc->fd, B_EV_IO_WRITE, bitlbee_io_current_client_write, irc );
    659659        }
    660660       
     
    682682                if( now )
    683683                {
    684                         bitlbee_io_current_client_write( irc, irc->fd, GAIM_INPUT_WRITE );
     684                        bitlbee_io_current_client_write( irc, irc->fd, B_EV_IO_WRITE );
    685685                }
    686686                temp = temp->next;
Note: See TracChangeset for help on using the changeset viewer.