… | |
… | |
324 | const_iv (EV, LOOP_ONESHOT) |
324 | const_iv (EV, LOOP_ONESHOT) |
325 | const_iv (EV, LOOP_NONBLOCK) |
325 | const_iv (EV, LOOP_NONBLOCK) |
326 | const_iv (EV, UNLOOP_ONE) |
326 | const_iv (EV, UNLOOP_ONE) |
327 | const_iv (EV, UNLOOP_ALL) |
327 | const_iv (EV, UNLOOP_ALL) |
328 | |
328 | |
329 | const_iv (EV, METHOD_SELECT) |
329 | const_iv (EV, BACKEND_SELECT) |
330 | const_iv (EV, METHOD_POLL) |
330 | const_iv (EV, BACKEND_POLL) |
331 | const_iv (EV, METHOD_EPOLL) |
331 | const_iv (EV, BACKEND_EPOLL) |
332 | const_iv (EV, METHOD_KQUEUE) |
332 | const_iv (EV, BACKEND_KQUEUE) |
333 | const_iv (EV, METHOD_DEVPOLL) |
333 | const_iv (EV, BACKEND_DEVPOLL) |
334 | const_iv (EV, METHOD_PORT) |
334 | const_iv (EV, BACKEND_PORT) |
335 | const_iv (EV, FLAG_AUTO) |
335 | const_iv (EV, FLAG_AUTO) |
336 | const_iv (EV, FLAG_NOENV) |
336 | const_iv (EV, FLAG_NOENV) |
337 | }; |
337 | }; |
338 | |
338 | |
339 | 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; ) |
… | |
… | |
357 | evapi.ver = EV_API_VERSION; |
357 | evapi.ver = EV_API_VERSION; |
358 | evapi.rev = EV_API_REVISION; |
358 | evapi.rev = EV_API_REVISION; |
359 | evapi.sv_fileno = sv_fileno; |
359 | evapi.sv_fileno = sv_fileno; |
360 | evapi.sv_signum = sv_signum; |
360 | evapi.sv_signum = sv_signum; |
361 | evapi.now = ev_now; |
361 | evapi.now = ev_now; |
362 | evapi.method = ev_method; |
362 | evapi.backend = ev_backend; |
363 | evapi.unloop = ev_unloop; |
363 | evapi.unloop = ev_unloop; |
364 | evapi.time = ev_time; |
364 | evapi.time = ev_time; |
365 | evapi.loop = ev_loop; |
365 | evapi.loop = ev_loop; |
366 | evapi.once = ev_once; |
366 | evapi.once = ev_once; |
367 | evapi.io_start = ev_io_start; |
367 | evapi.io_start = ev_io_start; |
… | |
… | |
390 | #endif |
390 | #endif |
391 | } |
391 | } |
392 | |
392 | |
393 | NV ev_now () |
393 | NV ev_now () |
394 | |
394 | |
395 | int ev_method () |
395 | unsigned int ev_backend () |
396 | |
396 | |
397 | NV ev_time () |
397 | NV ev_time () |
398 | |
398 | |
399 | int ev_default_loop (int methods = EVFLAG_AUTO) |
399 | unsigned int ev_default_loop (unsigned int flags = ev_supported_backends ()) |
400 | |
400 | |
401 | void ev_loop (int flags = 0) |
401 | void ev_loop (int flags = 0) |
402 | |
402 | |
403 | void ev_unloop (int how = 1) |
403 | void ev_unloop (int how = 1) |
404 | |
404 | |