ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.xs
(Generate patch)

Comparing EV/EV.xs (file contents):
Revision 1.70 by root, Fri Nov 16 10:37:28 2007 UTC vs.
Revision 1.73 by root, Fri Nov 23 05:00:44 2007 UTC

9 9
10/* fix perl api breakage */ 10/* fix perl api breakage */
11#undef signal 11#undef signal
12#undef sigaction 12#undef sigaction
13 13
14#define EV_USE_MONOTONIC 1
15#define EV_USE_REALTIME 1
16#define EV_SELECT_IS_WINSOCKET 0 14#define EV_SELECT_IS_WINSOCKET 0
17#ifdef _WIN32 15#ifdef _WIN32
18# define EV_SELECT_USE_FD_SET 0 16# define EV_SELECT_USE_FD_SET 0
19# define NFDBITS PERL_NFDBITS 17# define NFDBITS PERL_NFDBITS
20# define fd_mask Perl_fd_mask 18# define fd_mask Perl_fd_mask
326 const_iv (EV, LOOP_ONESHOT) 324 const_iv (EV, LOOP_ONESHOT)
327 const_iv (EV, LOOP_NONBLOCK) 325 const_iv (EV, LOOP_NONBLOCK)
328 const_iv (EV, UNLOOP_ONE) 326 const_iv (EV, UNLOOP_ONE)
329 const_iv (EV, UNLOOP_ALL) 327 const_iv (EV, UNLOOP_ALL)
330 328
331 const_iv (EV, METHOD_SELECT) 329 const_iv (EV, BACKEND_SELECT)
332 const_iv (EV, METHOD_POLL) 330 const_iv (EV, BACKEND_POLL)
333 const_iv (EV, METHOD_EPOLL) 331 const_iv (EV, BACKEND_EPOLL)
334 const_iv (EV, METHOD_KQUEUE) 332 const_iv (EV, BACKEND_KQUEUE)
335 const_iv (EV, METHOD_DEVPOLL) 333 const_iv (EV, BACKEND_DEVPOLL)
336 const_iv (EV, METHOD_PORT) 334 const_iv (EV, BACKEND_PORT)
337 const_iv (EV, FLAG_AUTO) 335 const_iv (EV, FLAG_AUTO)
338 const_iv (EV, FLAG_NOENV) 336 const_iv (EV, FLAG_NOENV)
339 }; 337 };
340 338
341 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) 339 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; )
359 evapi.ver = EV_API_VERSION; 357 evapi.ver = EV_API_VERSION;
360 evapi.rev = EV_API_REVISION; 358 evapi.rev = EV_API_REVISION;
361 evapi.sv_fileno = sv_fileno; 359 evapi.sv_fileno = sv_fileno;
362 evapi.sv_signum = sv_signum; 360 evapi.sv_signum = sv_signum;
363 evapi.now = ev_now; 361 evapi.now = ev_now;
364 evapi.method = ev_method; 362 evapi.backend = ev_backend;
365 evapi.unloop = ev_unloop; 363 evapi.unloop = ev_unloop;
366 evapi.time = ev_time; 364 evapi.time = ev_time;
367 evapi.loop = ev_loop; 365 evapi.loop = ev_loop;
368 evapi.once = ev_once; 366 evapi.once = ev_once;
369 evapi.io_start = ev_io_start; 367 evapi.io_start = ev_io_start;
396 394
397int ev_method () 395int ev_method ()
398 396
399NV ev_time () 397NV ev_time ()
400 398
401int ev_default_loop (int methods = EVFLAG_AUTO) 399int ev_default_loop (int methods = ev_supported_methods ())
402 400
403void ev_loop (int flags = 0) 401void ev_loop (int flags = 0)
404 402
405void ev_unloop (int how = 1) 403void ev_unloop (int how = 1)
406 404

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines