… | |
… | |
364 | const_iv (EV_, UNDEF) |
364 | const_iv (EV_, UNDEF) |
365 | const_iv (EV_, NONE) |
365 | const_iv (EV_, NONE) |
366 | const_iv (EV_, READ) |
366 | const_iv (EV_, READ) |
367 | const_iv (EV_, WRITE) |
367 | const_iv (EV_, WRITE) |
368 | const_iv (EV_, IO) |
368 | const_iv (EV_, IO) |
369 | const_iv (EV_, TIMEOUT) /* deprecated */ |
|
|
370 | const_iv (EV_, TIMER) |
369 | const_iv (EV_, TIMEOUT) |
371 | const_iv (EV_, PERIODIC) |
370 | const_iv (EV_, PERIODIC) |
372 | const_iv (EV_, SIGNAL) |
371 | const_iv (EV_, SIGNAL) |
373 | const_iv (EV_, CHILD) |
372 | const_iv (EV_, CHILD) |
374 | const_iv (EV_, STAT) |
373 | const_iv (EV_, STAT) |
375 | const_iv (EV_, IDLE) |
374 | const_iv (EV_, IDLE) |
… | |
… | |
379 | const_iv (EV_, FORK) |
378 | const_iv (EV_, FORK) |
380 | const_iv (EV_, ASYNC) |
379 | const_iv (EV_, ASYNC) |
381 | const_iv (EV_, CUSTOM) |
380 | const_iv (EV_, CUSTOM) |
382 | const_iv (EV_, ERROR) |
381 | const_iv (EV_, ERROR) |
383 | |
382 | |
384 | const_iv (EV, LOOP_NONBLOCK) |
|
|
385 | const_iv (EV, LOOP_ONESHOT) |
|
|
386 | |
|
|
387 | const_iv (EV, UNLOOP_CANCEL) |
383 | const_iv (EV, RUN_NOWAIT) |
388 | const_iv (EV, UNLOOP_ONE) |
384 | const_iv (EV, RUN_ONCE) |
|
|
385 | |
|
|
386 | const_iv (EV, BREAK_CANCEL) |
|
|
387 | const_iv (EV, BREAK_ONE) |
389 | const_iv (EV, UNLOOP_ALL) |
388 | const_iv (EV, BREAK_ALL) |
390 | |
|
|
391 | const_iv (EV, BACKEND_SELECT) |
389 | const_iv (EV, BACKEND_SELECT) |
392 | const_iv (EV, BACKEND_POLL) |
390 | const_iv (EV, BACKEND_POLL) |
393 | const_iv (EV, BACKEND_EPOLL) |
391 | const_iv (EV, BACKEND_EPOLL) |
394 | const_iv (EV, BACKEND_KQUEUE) |
392 | const_iv (EV, BACKEND_KQUEUE) |
395 | const_iv (EV, BACKEND_DEVPOLL) |
393 | const_iv (EV, BACKEND_DEVPOLL) |
… | |
… | |
402 | const_iv (EV, FLAG_NOSIGFD) /* compatibility, always 0 */ |
400 | const_iv (EV, FLAG_NOSIGFD) /* compatibility, always 0 */ |
403 | const_iv (EV, FLAG_NOINOTIFY) |
401 | const_iv (EV, FLAG_NOINOTIFY) |
404 | |
402 | |
405 | const_iv (EV_, VERSION_MAJOR) |
403 | const_iv (EV_, VERSION_MAJOR) |
406 | const_iv (EV_, VERSION_MINOR) |
404 | const_iv (EV_, VERSION_MINOR) |
|
|
405 | #if EV_COMPAT3 |
|
|
406 | const_iv (EV_, TIMER) |
|
|
407 | |
|
|
408 | const_iv (EV, LOOP_NONBLOCK) |
|
|
409 | const_iv (EV, LOOP_ONESHOT) |
|
|
410 | |
|
|
411 | const_iv (EV, UNLOOP_CANCEL) |
|
|
412 | const_iv (EV, UNLOOP_ONE) |
|
|
413 | const_iv (EV, UNLOOP_ALL) |
|
|
414 | #endif |
407 | }; |
415 | }; |
408 | |
416 | |
409 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
417 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
410 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
418 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
411 | |
419 | |
… | |
… | |
448 | evapi.now = ev_now; |
456 | evapi.now = ev_now; |
449 | evapi.now_update = ev_now_update; |
457 | evapi.now_update = ev_now_update; |
450 | evapi.suspend = ev_suspend; |
458 | evapi.suspend = ev_suspend; |
451 | evapi.resume = ev_resume; |
459 | evapi.resume = ev_resume; |
452 | evapi.backend = ev_backend; |
460 | evapi.backend = ev_backend; |
453 | evapi.unloop = ev_unloop; |
461 | evapi.break_ = ev_break; |
454 | evapi.invoke_pending = ev_invoke_pending; |
462 | evapi.invoke_pending = ev_invoke_pending; |
455 | evapi.pending_count = ev_pending_count; |
463 | evapi.pending_count = ev_pending_count; |
456 | evapi.verify = ev_verify; |
464 | evapi.verify = ev_verify; |
457 | evapi.set_loop_release_cb = ev_set_loop_release_cb; |
465 | evapi.set_loop_release_cb = ev_set_loop_release_cb; |
458 | evapi.set_invoke_pending_cb= ev_set_invoke_pending_cb; |
466 | evapi.set_invoke_pending_cb= ev_set_invoke_pending_cb; |
459 | evapi.ref = ev_ref; |
467 | evapi.ref = ev_ref; |
460 | evapi.unref = ev_unref; |
468 | evapi.unref = ev_unref; |
461 | evapi.loop = ev_loop; |
469 | evapi.run = ev_run; |
462 | evapi.once = ev_once; |
470 | evapi.once = ev_once; |
463 | evapi.io_start = ev_io_start; |
471 | evapi.io_start = ev_io_start; |
464 | evapi.io_stop = ev_io_stop; |
472 | evapi.io_stop = ev_io_stop; |
465 | evapi.timer_start = ev_timer_start; |
473 | evapi.timer_start = ev_timer_start; |
466 | evapi.timer_stop = ev_timer_stop; |
474 | evapi.timer_stop = ev_timer_stop; |
… | |
… | |
550 | |
558 | |
551 | unsigned int ev_backend () |
559 | unsigned int ev_backend () |
552 | C_ARGS: evapi.default_loop |
560 | C_ARGS: evapi.default_loop |
553 | |
561 | |
554 | void ev_verify () |
562 | void ev_verify () |
|
|
563 | ALIAS: |
|
|
564 | loop_verify = 1 |
555 | C_ARGS: evapi.default_loop |
565 | C_ARGS: evapi.default_loop |
556 | |
566 | |
557 | unsigned int ev_iteration () |
567 | unsigned int ev_iteration () |
|
|
568 | ALIAS: |
|
|
569 | loop_count = 1 |
558 | C_ARGS: evapi.default_loop |
570 | C_ARGS: evapi.default_loop |
559 | |
571 | |
560 | unsigned int ev_depth () |
572 | unsigned int ev_depth () |
|
|
573 | ALIAS: |
|
|
574 | loop_depth = 1 |
561 | C_ARGS: evapi.default_loop |
575 | C_ARGS: evapi.default_loop |
562 | |
576 | |
563 | void ev_set_io_collect_interval (NV interval) |
577 | void ev_set_io_collect_interval (NV interval) |
564 | C_ARGS: evapi.default_loop, interval |
578 | C_ARGS: evapi.default_loop, interval |
565 | |
579 | |
566 | void ev_set_timeout_collect_interval (NV interval) |
580 | void ev_set_timeout_collect_interval (NV interval) |
567 | C_ARGS: evapi.default_loop, interval |
581 | C_ARGS: evapi.default_loop, interval |
568 | |
582 | |
569 | void ev_loop (int flags = 0) |
583 | void ev_run (int flags = 0) |
|
|
584 | ALIAS: |
|
|
585 | loop = 1 |
570 | C_ARGS: evapi.default_loop, flags |
586 | C_ARGS: evapi.default_loop, flags |
571 | |
587 | |
572 | void ev_unloop (int how = EVUNLOOP_ONE) |
588 | void ev_break (int how = EVBREAK_ONE) |
|
|
589 | ALIAS: |
|
|
590 | unloop = 1 |
573 | C_ARGS: evapi.default_loop, how |
591 | C_ARGS: evapi.default_loop, how |
574 | |
592 | |
575 | void ev_feed_fd_event (int fd, int revents = EV_NONE) |
593 | void ev_feed_fd_event (int fd, int revents = EV_NONE) |
576 | C_ARGS: evapi.default_loop, fd, revents |
594 | C_ARGS: evapi.default_loop, fd, revents |
577 | |
595 | |
… | |
… | |
1290 | if (loop != evapi.default_loop) /* global destruction sucks */ |
1308 | if (loop != evapi.default_loop) /* global destruction sucks */ |
1291 | ev_loop_destroy (loop); |
1309 | ev_loop_destroy (loop); |
1292 | |
1310 | |
1293 | void ev_loop_fork (struct ev_loop *loop) |
1311 | void ev_loop_fork (struct ev_loop *loop) |
1294 | |
1312 | |
|
|
1313 | NV ev_now (struct ev_loop *loop) |
|
|
1314 | |
|
|
1315 | void ev_now_update (struct ev_loop *loop) |
|
|
1316 | |
|
|
1317 | void ev_suspend (struct ev_loop *loop) |
|
|
1318 | |
|
|
1319 | void ev_resume (struct ev_loop *loop) |
|
|
1320 | |
|
|
1321 | void ev_set_io_collect_interval (struct ev_loop *loop, NV interval) |
|
|
1322 | |
|
|
1323 | void ev_set_timeout_collect_interval (struct ev_loop *loop, NV interval) |
|
|
1324 | |
|
|
1325 | unsigned int ev_backend (struct ev_loop *loop) |
|
|
1326 | |
1295 | void ev_verify (struct ev_loop *loop) |
1327 | void ev_verify (struct ev_loop *loop) |
1296 | |
1328 | ALIAS: |
1297 | NV ev_now (struct ev_loop *loop) |
1329 | loop_verify = 1 |
1298 | |
|
|
1299 | void ev_now_update (struct ev_loop *loop) |
|
|
1300 | |
|
|
1301 | void ev_suspend (struct ev_loop *loop) |
|
|
1302 | |
|
|
1303 | void ev_resume (struct ev_loop *loop) |
|
|
1304 | |
|
|
1305 | void ev_set_io_collect_interval (struct ev_loop *loop, NV interval) |
|
|
1306 | |
|
|
1307 | void ev_set_timeout_collect_interval (struct ev_loop *loop, NV interval) |
|
|
1308 | |
|
|
1309 | unsigned int ev_backend (struct ev_loop *loop) |
|
|
1310 | |
1330 | |
1311 | unsigned int ev_iteration (struct ev_loop *loop) |
1331 | unsigned int ev_iteration (struct ev_loop *loop) |
|
|
1332 | ALIAS: |
|
|
1333 | loop_count = 1 |
1312 | |
1334 | |
1313 | unsigned int ev_depth (struct ev_loop *loop) |
1335 | unsigned int ev_depth (struct ev_loop *loop) |
|
|
1336 | ALIAS: |
|
|
1337 | loop_depth = 1 |
1314 | |
1338 | |
1315 | void ev_loop (struct ev_loop *loop, int flags = 0) |
1339 | void ev_run (struct ev_loop *loop, int flags = 0) |
|
|
1340 | ALIAS: |
|
|
1341 | loop = 1 |
1316 | |
1342 | |
1317 | void ev_unloop (struct ev_loop *loop, int how = 1) |
1343 | void ev_break (struct ev_loop *loop, int how = 1) |
|
|
1344 | ALIAS: |
|
|
1345 | unloop = 1 |
1318 | |
1346 | |
1319 | void ev_feed_fd_event (struct ev_loop *loop, int fd, int revents = EV_NONE) |
1347 | void ev_feed_fd_event (struct ev_loop *loop, int fd, int revents = EV_NONE) |
1320 | |
1348 | |
1321 | unsigned int ev_pending_count (struct ev_loop *loop) |
1349 | unsigned int ev_pending_count (struct ev_loop *loop) |
1322 | |
1350 | |