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

Comparing EV/EV.xs (file contents):
Revision 1.134 by root, Fri Sep 18 21:28:33 2009 UTC vs.
Revision 1.137 by root, Tue Mar 16 20:43:05 2010 UTC

13sv_fileno (SV *fh) 13sv_fileno (SV *fh)
14{ 14{
15 return s_fileno (fh, 0); 15 return s_fileno (fh, 0);
16} 16}
17 17
18#define EV_STANDALONE 1
18#define EV_PROTOTYPES 1 19#define EV_PROTOTYPES 1
19#define EV_USE_NANOSLEEP EV_USE_MONOTONIC 20#define EV_USE_NANOSLEEP EV_USE_MONOTONIC
20#define EV_H <ev.h> 21#define EV_H <ev.h>
22#define EV_CONFIG_H error
21#include "EV/EVAPI.h" 23#include "EV/EVAPI.h"
22 24
23#define EV_SELECT_IS_WINSOCKET 0 25#define EV_SELECT_IS_WINSOCKET 0
24#ifdef _WIN32 26#ifdef _WIN32
25# define EV_SELECT_USE_FD_SET 0 27# define EV_SELECT_USE_FD_SET 0
358 const_iv (EV_, UNDEF) 360 const_iv (EV_, UNDEF)
359 const_iv (EV_, NONE) 361 const_iv (EV_, NONE)
360 const_iv (EV_, READ) 362 const_iv (EV_, READ)
361 const_iv (EV_, WRITE) 363 const_iv (EV_, WRITE)
362 const_iv (EV_, IO) 364 const_iv (EV_, IO)
363 const_iv (EV_, TIMEOUT) 365 const_iv (EV_, TIMEOUT) /* deprecated */
364 const_iv (EV_, TIMER) 366 const_iv (EV_, TIMER)
365 const_iv (EV_, PERIODIC) 367 const_iv (EV_, PERIODIC)
366 const_iv (EV_, SIGNAL) 368 const_iv (EV_, SIGNAL)
367 const_iv (EV_, CHILD) 369 const_iv (EV_, CHILD)
368 const_iv (EV_, STAT) 370 const_iv (EV_, STAT)
389 const_iv (EV, BACKEND_DEVPOLL) 391 const_iv (EV, BACKEND_DEVPOLL)
390 const_iv (EV, BACKEND_PORT) 392 const_iv (EV, BACKEND_PORT)
391 const_iv (EV, BACKEND_ALL) 393 const_iv (EV, BACKEND_ALL)
392 const_iv (EV, FLAG_AUTO) 394 const_iv (EV, FLAG_AUTO)
393 const_iv (EV, FLAG_FORKCHECK) 395 const_iv (EV, FLAG_FORKCHECK)
396 const_iv (EV, FLAG_SIGNALFD)
394 const_iv (EV, FLAG_NOENV) 397 const_iv (EV, FLAG_NOENV)
395 const_iv (EV, FLAG_NOSIGFD) 398 const_iv (EV, FLAG_NOSIGFD) /* compatibility, always 0 */
396 const_iv (EV, FLAG_NOINOTIFY) 399 const_iv (EV, FLAG_NOINOTIFY)
397 400
398 const_iv (EV_, VERSION_MAJOR) 401 const_iv (EV_, VERSION_MAJOR)
399 const_iv (EV_, VERSION_MINOR) 402 const_iv (EV_, VERSION_MINOR)
400 }; 403 };
432 evapi.time_ = ev_time; 435 evapi.time_ = ev_time;
433 evapi.sleep_ = ev_sleep; 436 evapi.sleep_ = ev_sleep;
434 evapi.loop_new = ev_loop_new; 437 evapi.loop_new = ev_loop_new;
435 evapi.loop_destroy = ev_loop_destroy; 438 evapi.loop_destroy = ev_loop_destroy;
436 evapi.loop_fork = ev_loop_fork; 439 evapi.loop_fork = ev_loop_fork;
437 evapi.loop_count = ev_loop_count; 440 evapi.iteration = ev_iteration;
438 evapi.loop_depth = ev_loop_depth; 441 evapi.depth = ev_depth;
439 evapi.set_userdata = ev_set_userdata; 442 evapi.set_userdata = ev_set_userdata;
440 evapi.userdata = ev_userdata; 443 evapi.userdata = ev_userdata;
441 evapi.now = ev_now; 444 evapi.now = ev_now;
442 evapi.now_update = ev_now_update; 445 evapi.now_update = ev_now_update;
443 evapi.suspend = ev_suspend; 446 evapi.suspend = ev_suspend;
444 evapi.resume = ev_resume; 447 evapi.resume = ev_resume;
445 evapi.backend = ev_backend; 448 evapi.backend = ev_backend;
446 evapi.unloop = ev_unloop; 449 evapi.unloop = ev_unloop;
447 evapi.invoke_pending = ev_invoke_pending; 450 evapi.invoke_pending = ev_invoke_pending;
448 evapi.pending_count = ev_pending_count; 451 evapi.pending_count = ev_pending_count;
452 evapi.verify = ev_verify;
449 evapi.set_loop_release_cb = ev_set_loop_release_cb; 453 evapi.set_loop_release_cb = ev_set_loop_release_cb;
450 evapi.set_invoke_pending_cb= ev_set_invoke_pending_cb; 454 evapi.set_invoke_pending_cb= ev_set_invoke_pending_cb;
451 evapi.ref = ev_ref; 455 evapi.ref = ev_ref;
452 evapi.unref = ev_unref; 456 evapi.unref = ev_unref;
453 evapi.loop = ev_loop; 457 evapi.loop = ev_loop;
539 C_ARGS: evapi.default_loop 543 C_ARGS: evapi.default_loop
540 544
541unsigned int ev_backend () 545unsigned int ev_backend ()
542 C_ARGS: evapi.default_loop 546 C_ARGS: evapi.default_loop
543 547
544void ev_loop_verify () 548void ev_verify ()
545 C_ARGS: evapi.default_loop 549 C_ARGS: evapi.default_loop
546 550
547unsigned int ev_loop_count () 551unsigned int ev_iteration ()
548 C_ARGS: evapi.default_loop 552 C_ARGS: evapi.default_loop
549 553
550unsigned int ev_loop_depth () 554unsigned int ev_depth ()
551 C_ARGS: evapi.default_loop 555 C_ARGS: evapi.default_loop
552 556
553void ev_set_io_collect_interval (NV interval) 557void ev_set_io_collect_interval (NV interval)
554 C_ARGS: evapi.default_loop, interval 558 C_ARGS: evapi.default_loop, interval
555 559
1270 if (loop != evapi.default_loop) /* global destruction sucks */ 1274 if (loop != evapi.default_loop) /* global destruction sucks */
1271 ev_loop_destroy (loop); 1275 ev_loop_destroy (loop);
1272 1276
1273void ev_loop_fork (struct ev_loop *loop) 1277void ev_loop_fork (struct ev_loop *loop)
1274 1278
1275void ev_loop_verify (struct ev_loop *loop) 1279void ev_verify (struct ev_loop *loop)
1276 1280
1277NV ev_now (struct ev_loop *loop) 1281NV ev_now (struct ev_loop *loop)
1278 1282
1279void ev_now_update (struct ev_loop *loop) 1283void ev_now_update (struct ev_loop *loop)
1280 1284
1286 1290
1287void ev_set_timeout_collect_interval (struct ev_loop *loop, NV interval) 1291void ev_set_timeout_collect_interval (struct ev_loop *loop, NV interval)
1288 1292
1289unsigned int ev_backend (struct ev_loop *loop) 1293unsigned int ev_backend (struct ev_loop *loop)
1290 1294
1291unsigned int ev_loop_count (struct ev_loop *loop) 1295unsigned int ev_iteration (struct ev_loop *loop)
1292 1296
1293unsigned int ev_loop_depth (struct ev_loop *loop) 1297unsigned int ev_depth (struct ev_loop *loop)
1294 1298
1295void ev_loop (struct ev_loop *loop, int flags = 0) 1299void ev_loop (struct ev_loop *loop, int flags = 0)
1296 1300
1297void ev_unloop (struct ev_loop *loop, int how = 1) 1301void ev_unloop (struct ev_loop *loop, int how = 1)
1298 1302

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines