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

Comparing libev/ev.h (file contents):
Revision 1.74 by root, Wed Nov 28 11:15:55 2007 UTC vs.
Revision 1.76 by root, Thu Nov 29 17:28:13 2007 UTC

64# define EV_EMBED_ENABLE 1 64# define EV_EMBED_ENABLE 1
65#endif 65#endif
66 66
67/*****************************************************************************/ 67/*****************************************************************************/
68 68
69#include <stddef.h> /* for size_t */
70
71#if EV_STAT_ENABLE 69#if EV_STAT_ENABLE
72# include <sys/stat.h> 70# include <sys/stat.h>
73#endif 71#endif
74 72
75/* support multiple event loops? */ 73/* support multiple event loops? */
312/* bits for ev_default_loop and ev_loop_new */ 310/* bits for ev_default_loop and ev_loop_new */
313/* the default */ 311/* the default */
314#define EVFLAG_AUTO 0x00000000UL /* not quite a mask */ 312#define EVFLAG_AUTO 0x00000000UL /* not quite a mask */
315/* flag bits */ 313/* flag bits */
316#define EVFLAG_NOENV 0x01000000UL /* do NOT consult environment */ 314#define EVFLAG_NOENV 0x01000000UL /* do NOT consult environment */
315#define EVFLAG_FORKCHECK 0x02000000UL /* check for a fork in each iteration */
317/* method bits to be ored together */ 316/* method bits to be ored together */
318#define EVBACKEND_SELECT 0x00000001UL /* about anywhere */ 317#define EVBACKEND_SELECT 0x00000001UL /* about anywhere */
319#define EVBACKEND_POLL 0x00000002UL /* !win */ 318#define EVBACKEND_POLL 0x00000002UL /* !win */
320#define EVBACKEND_EPOLL 0x00000004UL /* linux */ 319#define EVBACKEND_EPOLL 0x00000004UL /* linux */
321#define EVBACKEND_KQUEUE 0x00000008UL /* bsd */ 320#define EVBACKEND_KQUEUE 0x00000008UL /* bsd */
336 * It is used to allocate and free memory. 335 * It is used to allocate and free memory.
337 * If it returns zero when memory needs to be allocated, the library might abort 336 * If it returns zero when memory needs to be allocated, the library might abort
338 * or take some potentially destructive action. 337 * or take some potentially destructive action.
339 * The default is your system realloc function. 338 * The default is your system realloc function.
340 */ 339 */
341void ev_set_allocator (void *(*cb)(void *ptr, size_t size)); 340void ev_set_allocator (void *(*cb)(void *ptr, long size));
342 341
343/* set the callback function to call on a 342/* set the callback function to call on a
344 * retryable syscall error 343 * retryable syscall error
345 * (such as failed select, poll, epoll_wait) 344 * (such as failed select, poll, epoll_wait)
346 */ 345 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines