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

Comparing libev/event.h (file contents):
Revision 1.6 by root, Sat Nov 3 19:41:56 2007 UTC vs.
Revision 1.12 by root, Thu Nov 8 21:14:15 2007 UTC

29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31#ifndef _EVENT_H_ 31#ifndef _EVENT_H_
32#define _EVENT_H_ 32#define _EVENT_H_
33 33
34#include "ev.h" 34#include <ev.h>
35 35
36#ifdef __cplusplus 36#ifdef __cplusplus
37extern "C" { 37extern "C" {
38#endif 38#endif
39 39
102void event_set (struct event *ev, int fd, short events, void (*cb)(int, short, void *), void *arg); 102void event_set (struct event *ev, int fd, short events, void (*cb)(int, short, void *), void *arg);
103int event_once (int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv); 103int event_once (int fd, short events, void (*cb)(int, short, void *), void *arg, struct timeval *tv);
104 104
105int event_add (struct event *ev, struct timeval *tv); 105int event_add (struct event *ev, struct timeval *tv);
106int event_del (struct event *ev); 106int event_del (struct event *ev);
107void event_active (struct event *ev, int res, short ncalls); /* ncalls is being ignored */
107 108
108int event_pending (struct event *ev, short, struct timeval *tv); 109int event_pending (struct event *ev, short, struct timeval *tv);
109 110
110int event_priority_init (int npri); 111int event_priority_init (int npri);
111int event_priority_set (struct event *ev, int pri); 112int event_priority_set (struct event *ev, int pri);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines