… | |
… | |
213 | #endif |
213 | #endif |
214 | |
214 | |
215 | /*****************************************************************************/ |
215 | /*****************************************************************************/ |
216 | |
216 | |
217 | #define EV_VERSION_MAJOR 4 |
217 | #define EV_VERSION_MAJOR 4 |
218 | #define EV_VERSION_MINOR 32 |
218 | #define EV_VERSION_MINOR 33 |
219 | |
219 | |
220 | /* eventmask, revents, events... */ |
220 | /* eventmask, revents, events... */ |
221 | enum { |
221 | enum { |
222 | EV_UNDEF = (int)0xFFFFFFFF, /* guaranteed to be invalid */ |
222 | EV_UNDEF = (int)0xFFFFFFFF, /* guaranteed to be invalid */ |
223 | EV_NONE = 0x00, /* no events */ |
223 | EV_NONE = 0x00, /* no events */ |
… | |
… | |
742 | #ifndef ev_set_cb |
742 | #ifndef ev_set_cb |
743 | /* memmove is used here to avoid strict aliasing violations, and hopefully is optimized out by any reasonable compiler */ |
743 | /* memmove is used here to avoid strict aliasing violations, and hopefully is optimized out by any reasonable compiler */ |
744 | # define ev_set_cb(ev,cb_) (ev_cb_ (ev) = (cb_), memmove (&((ev_watcher *)(ev))->cb, &ev_cb_ (ev), sizeof (ev_cb_ (ev)))) |
744 | # define ev_set_cb(ev,cb_) (ev_cb_ (ev) = (cb_), memmove (&((ev_watcher *)(ev))->cb, &ev_cb_ (ev), sizeof (ev_cb_ (ev)))) |
745 | #endif |
745 | #endif |
746 | |
746 | |
747 | /* stopping (enabling, adding) a watcher does nothing if it is already running */ |
747 | /* starting (enabling, adding) a watcher does nothing if it is already running */ |
748 | /* stopping (disabling, deleting) a watcher does nothing unless it's already running */ |
748 | /* stopping (disabling, deleting) a watcher does nothing unless it's already running */ |
749 | #if EV_PROTOTYPES |
749 | #if EV_PROTOTYPES |
750 | |
750 | |
751 | /* feeds an event into a watcher as if the event actually occurred */ |
751 | /* feeds an event into a watcher as if the event actually occurred */ |
752 | /* accepts any ev_watcher type */ |
752 | /* accepts any ev_watcher type */ |