Changeset e046390 for lib/events_glib.c


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_glib.c

    r0cbef26 re046390  
    7676
    7777        if (condition & GAIM_READ_COND)
    78                 gaim_cond |= GAIM_INPUT_READ;
     78                gaim_cond |= B_EV_IO_READ;
    7979        if (condition & GAIM_WRITE_COND)
    80                 gaim_cond |= GAIM_INPUT_WRITE;
     80                gaim_cond |= B_EV_IO_WRITE;
    8181       
    8282        event_debug( "gaim_io_invoke( %d, %d, 0x%x )\n", g_io_channel_unix_get_fd(source), condition, data );
     
    106106        closure->data = data;
    107107       
    108         if (condition & GAIM_INPUT_READ)
     108        if (condition & B_EV_IO_READ)
    109109                cond |= GAIM_READ_COND;
    110         if (condition & GAIM_INPUT_WRITE)
     110        if (condition & B_EV_IO_WRITE)
    111111                cond |= GAIM_WRITE_COND;
    112112       
Note: See TracChangeset for help on using the changeset viewer.