Changeset b15cbc4 for lib


Ignore:
Timestamp:
2020-03-17T11:29:47Z (5 years ago)
Author:
Petr Vaněk <arkamar@…>
Branches:
master
Children:
c479242
Parents:
3a547ee
Message:

Make the irc test work with libevent

Location:
lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/events.h

    r3a547ee rb15cbc4  
    7070G_MODULE_EXPORT void b_main_quit();
    7171
     72G_MODULE_EXPORT void b_main_iteration();
     73
    7274
    7375/* Add event handlers (for I/O or a timeout). The event handler will be called
  • lib/events_glib.c

    r3a547ee rb15cbc4  
    6363{
    6464        g_main_quit(loop);
     65}
     66
     67void b_main_iteration()
     68{
     69        g_main_iteration(FALSE);
     70        event_debug("b_main_iteration()\n");
    6571}
    6672
  • lib/events_libevent.c

    r3a547ee rb15cbc4  
    112112
    113113        b_main_restart();
     114}
     115
     116void b_main_iteration()
     117{
     118        event_base_loop(leh, EVLOOP_NONBLOCK);
     119        event_debug("b_main_iteration()\n");
    114120}
    115121
Note: See TracChangeset for help on using the changeset viewer.