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

Comparing libev/ev++.h (file contents):
Revision 1.39 by root, Tue Apr 15 04:34:07 2008 UTC vs.
Revision 1.43 by root, Wed Nov 5 14:36:18 2008 UTC

1/* 1/*
2 * libev simple C++ wrapper classes 2 * libev simple C++ wrapper classes
3 * 3 *
4 * Copyright (c) 2007 Marc Alexander Lehmann <libev@schmorp.de> 4 * Copyright (c) 2007,2008 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 *
56 56
57namespace ev { 57namespace ev {
58 58
59 typedef ev_tstamp tstamp; 59 typedef ev_tstamp tstamp;
60 60
61 enum { 61 enum
62 {
62 UNDEF = EV_UNDEF, 63 UNDEF = EV_UNDEF,
63 NONE = EV_NONE, 64 NONE = EV_NONE,
64 READ = EV_READ, 65 READ = EV_READ,
65 WRITE = EV_WRITE, 66 WRITE = EV_WRITE,
66 TIMEOUT = EV_TIMEOUT, 67 TIMEOUT = EV_TIMEOUT,
72 CHECK = EV_CHECK, 73 CHECK = EV_CHECK,
73 PREPARE = EV_PREPARE, 74 PREPARE = EV_PREPARE,
74 FORK = EV_FORK, 75 FORK = EV_FORK,
75 ASYNC = EV_ASYNC, 76 ASYNC = EV_ASYNC,
76 EMBED = EV_EMBED, 77 EMBED = EV_EMBED,
78# undef ERROR // some systems stupidly #define ERROR
77 ERROR = EV_ERROR, 79 ERROR = EV_ERROR,
78 }; 80 };
79 81
80 enum 82 enum
81 { 83 {
82 AUTO = EVFLAG_AUTO, 84 AUTO = EVFLAG_AUTO,
83 NOENV = EVFLAG_NOENV, 85 NOENV = EVFLAG_NOENV,
84 FORKCHECK = EVFLAG_FORKCHECK, 86 FORKCHECK = EVFLAG_FORKCHECK,
87
85 SELECT = EVBACKEND_SELECT, 88 SELECT = EVBACKEND_SELECT,
86 POLL = EVBACKEND_POLL, 89 POLL = EVBACKEND_POLL,
87 EPOLL = EVBACKEND_EPOLL, 90 EPOLL = EVBACKEND_EPOLL,
88 KQUEUE = EVBACKEND_KQUEUE, 91 KQUEUE = EVBACKEND_KQUEUE,
89 DEVPOLL = EVBACKEND_DEVPOLL, 92 DEVPOLL = EVBACKEND_DEVPOLL,
90 PORT = EVBACKEND_PORT 93 PORT = EVBACKEND_PORT
91 }; 94 };
92 95
93 enum 96 enum
94 { 97 {
95 NONBLOCK = EVLOOP_NONBLOCK, 98 NONBLOCK = EVLOOP_NONBLOCK,
96 ONESHOT = EVLOOP_ONESHOT 99 ONESHOT = EVLOOP_ONESHOT
97 }; 100 };
98 101
99 enum how_t 102 enum how_t
100 { 103 {
101 ONE = EVUNLOOP_ONE, 104 ONE = EVUNLOOP_ONE,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines