Changeset 25b5a4a for lib


Ignore:
Timestamp:
2010-10-03T03:03:19Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
508588a
Parents:
04f0c10
Message:

Make sure events_*.c are fully compatible to callers so plugins built for
a different flavour will still work.

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/events.h

    r04f0c10 r25b5a4a  
    8181G_MODULE_EXPORT void b_event_remove(gint id);
    8282
    83 /* For now, closesocket() is only a function when using libevent. With GLib
    84    it's a preprocessor macro. */
    85 #ifdef EVENTS_LIBEVENT
     83/* With libevent, this one also cleans up event handlers if that wasn't already
     84   done (the caller is expected to do so but may miss it sometimes). */
    8685G_MODULE_EXPORT void closesocket(int fd);
    87 #endif
    8886
    8987#endif /* _EVENTS_H_ */
  • lib/events_glib.c

    r04f0c10 r25b5a4a  
    147147                g_source_remove(tag);
    148148}
     149
     150void closesocket( int fd )
     151{
     152        close( fd );
     153}
Note: See TracChangeset for help on using the changeset viewer.