ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.h
(Generate patch)

Comparing libev/ev.h (file contents):
Revision 1.156 by root, Fri Nov 5 22:28:54 2010 UTC vs.
Revision 1.157 by root, Mon Jan 10 01:58:55 2011 UTC

1/* 1/*
2 * libev native API header 2 * libev native API header
3 * 3 *
4 * Copyright (c) 2007,2008,2009,2010 Marc Alexander Lehmann <libev@schmorp.de> 4 * Copyright (c) 2007,2008,2009,2010,2011 Marc Alexander Lehmann <libev@schmorp.de>
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without modifica- 7 * Redistribution and use in source and binary forms, with or without modifica-
8 * tion, are permitted provided that the following conditions are met: 8 * tion, are permitted provided that the following conditions are met:
9 * 9 *
489 /* debugging/feature disable */ 489 /* debugging/feature disable */
490 EVFLAG_NOINOTIFY = 0x00100000U, /* do not attempt to use inotify */ 490 EVFLAG_NOINOTIFY = 0x00100000U, /* do not attempt to use inotify */
491#if EV_COMPAT3 491#if EV_COMPAT3
492 EVFLAG_NOSIGFD = 0, /* compatibility to pre-3.9 */ 492 EVFLAG_NOSIGFD = 0, /* compatibility to pre-3.9 */
493#endif 493#endif
494 EVFLAG_SIGNALFD = 0x00200000U /* attempt to use signalfd */ 494 EVFLAG_SIGNALFD = 0x00200000U, /* attempt to use signalfd */
495 EVFLAG_NOSIGMASK = 0x00400000U /* avoid modifying the signal mask */
495}; 496};
496 497
497/* method bits to be ored together */ 498/* method bits to be ored together */
498enum { 499enum {
499 EVBACKEND_SELECT = 0x00000001U, /* about anywhere */ 500 EVBACKEND_SELECT = 0x00000001U, /* about anywhere */
500 EVBACKEND_POLL = 0x00000002U, /* !win */ 501 EVBACKEND_POLL = 0x00000002U, /* !win */
501 EVBACKEND_EPOLL = 0x00000004U, /* linux */ 502 EVBACKEND_EPOLL = 0x00000004U, /* linux */
502 EVBACKEND_KQUEUE = 0x00000008U, /* bsd */ 503 EVBACKEND_KQUEUE = 0x00000008U, /* bsd */
503 EVBACKEND_DEVPOLL = 0x00000010U, /* solaris 8 */ /* NYI */ 504 EVBACKEND_DEVPOLL = 0x00000010U, /* solaris 8 */ /* NYI */
504 EVBACKEND_PORT = 0x00000020U, /* solaris 10 */ 505 EVBACKEND_PORT = 0x00000020U, /* solaris 10 */
505 EVBACKEND_ALL = 0x0000003FU 506 EVBACKEND_ALL = 0x0000003FU, /* all known backends */
507 EVBACKEND_MASK = 0x0000FFFFU /* all future backends */
506}; 508};
507 509
508#if EV_PROTOTYPES 510#if EV_PROTOTYPES
509int ev_version_major (void); 511int ev_version_major (void);
510int ev_version_minor (void); 512int ev_version_minor (void);
718/* feeds an event into a watcher as if the event actually occured */ 720/* feeds an event into a watcher as if the event actually occured */
719/* accepts any ev_watcher type */ 721/* accepts any ev_watcher type */
720void ev_feed_event (EV_P_ void *w, int revents); 722void ev_feed_event (EV_P_ void *w, int revents);
721void ev_feed_fd_event (EV_P_ int fd, int revents); 723void ev_feed_fd_event (EV_P_ int fd, int revents);
722#if EV_SIGNAL_ENABLE 724#if EV_SIGNAL_ENABLE
725void ev_feed_signal (int signum);
723void ev_feed_signal_event (EV_P_ int signum); 726void ev_feed_signal_event (EV_P_ int signum);
724#endif 727#endif
725void ev_invoke (EV_P_ void *w, int revents); 728void ev_invoke (EV_P_ void *w, int revents);
726int ev_clear_pending (EV_P_ void *w); 729int ev_clear_pending (EV_P_ void *w);
727 730

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines