X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/48151275f9dd2099bb2e98f47a341678182d9230..c20764a666b81af46b955c75eef0f6b088c821b0:/ev.h?ds=sidebyside diff --git a/ev.h b/ev.h index c49a4dd..a6065d0 100644 --- a/ev.h +++ b/ev.h @@ -27,8 +27,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef EV_H -#define EV_H +#ifndef EV_H__ +#define EV_H__ #ifdef __cplusplus extern "C" { @@ -331,6 +331,8 @@ void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revent /* feeds an event into a watcher as if the event actually occured */ /* accepts any ev_watcher type */ void ev_feed_event (EV_P_ void *w, int revents); +void ev_feed_fd_event (EV_P_ int fd, int revents); +void ev_feed_signal_event (EV_P_ int signum); void ev_io_start (EV_P_ struct ev_io *w); void ev_io_stop (EV_P_ struct ev_io *w);