Ignore:
Timestamp:
2009-10-10T23:25:54Z (15 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
  • lib/events_libevent.c

    r0cbef26 re046390  
    126126        {
    127127                if( event & EV_READ )
    128                         cond |= GAIM_INPUT_READ;
     128                        cond |= B_EV_IO_READ;
    129129                if( event & EV_WRITE )
    130                         cond |= GAIM_INPUT_WRITE;
     130                        cond |= B_EV_IO_WRITE;
    131131        }
    132132       
     
    174174        event_debug( "b_input_add( %d, %d, 0x%x, 0x%x ) ", fd, condition, function, data );
    175175       
    176         if( ( condition & GAIM_INPUT_READ  && ( b_ev = g_hash_table_lookup( read_hash,  &fd ) ) ) ||
    177             ( condition & GAIM_INPUT_WRITE && ( b_ev = g_hash_table_lookup( write_hash, &fd ) ) ) )
     176        if( ( condition & B_EV_IO_READ  && ( b_ev = g_hash_table_lookup( read_hash,  &fd ) ) ) ||
     177            ( condition & B_EV_IO_WRITE && ( b_ev = g_hash_table_lookup( write_hash, &fd ) ) ) )
    178178        {
    179179                /* We'll stick with this libevent entry, but give it a new BitlBee id. */
     
    198198               
    199199                out_cond = EV_PERSIST;
    200                 if( condition & GAIM_INPUT_READ )
     200                if( condition & B_EV_IO_READ )
    201201                        out_cond |= EV_READ;
    202                 if( condition & GAIM_INPUT_WRITE )
     202                if( condition & B_EV_IO_WRITE )
    203203                        out_cond |= EV_WRITE;
    204204               
Note: See TracChangeset for help on using the changeset viewer.