Mirror of :pserver:anonymous@cvs.schmorp.de/schmorpforge libev http://software.schmorp.de/pkg/libev.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1.9 KiB

14 years ago
  1. #define VARx(type,name) VAR(name, type name)
  2. VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */
  3. VARx(ev_tstamp, mn_now) /* monotonic clock "now" */
  4. VARx(ev_tstamp, rt_now)
  5. VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
  6. VARx(int, method)
  7. VARx(ev_tstamp, method_fudge) /* assumed typical timer resolution */
  8. VAR (method_modify, void (*method_modify)(EV_P_ int fd, int oev, int nev))
  9. VAR (method_poll , void (*method_poll)(EV_P_ ev_tstamp timeout))
  10. VARx(int, postfork) /* true if we need to recreate kernel state after fork */
  11. VARx(int, activecnt) /* number of active events */
  12. #if EV_USE_SELECT || EV_GENWRAP
  13. VARx(unsigned char *, vec_ri)
  14. VARx(unsigned char *, vec_ro)
  15. VARx(unsigned char *, vec_wi)
  16. VARx(unsigned char *, vec_wo)
  17. VARx(int, vec_max)
  18. #endif
  19. #if EV_USE_POLL || EV_GENWRAP
  20. VARx(struct pollfd *, polls)
  21. VARx(int, pollmax)
  22. VARx(int, pollcnt)
  23. VARx(int *, pollidxs) /* maps fds into structure indices */
  24. VARx(int, pollidxmax)
  25. #endif
  26. #if EV_USE_EPOLL || EV_GENWRAP
  27. VARx(int, epoll_fd)
  28. VARx(struct epoll_event *, epoll_events)
  29. VARx(int, epoll_eventmax)
  30. #endif
  31. #if EV_USE_KQUEUE || EV_GENWRAP
  32. VARx(int, kqueue_fd)
  33. VARx(struct kevent *, kqueue_changes)
  34. VARx(int, kqueue_changemax)
  35. VARx(int, kqueue_changecnt)
  36. VARx(struct kevent *, kqueue_events)
  37. VARx(int, kqueue_eventmax)
  38. #endif
  39. VARx(ANFD *, anfds)
  40. VARx(int, anfdmax)
  41. VAR (pendings, ANPENDING *pendings [NUMPRI])
  42. VAR (pendingmax, int pendingmax [NUMPRI])
  43. VAR (pendingcnt, int pendingcnt [NUMPRI])
  44. VARx(int *, fdchanges)
  45. VARx(int, fdchangemax)
  46. VARx(int, fdchangecnt)
  47. VARx(struct ev_timer **, timers)
  48. VARx(int, timermax)
  49. VARx(int, timercnt)
  50. VARx(struct ev_periodic **, periodics)
  51. VARx(int, periodicmax)
  52. VARx(int, periodiccnt)
  53. VARx(struct ev_idle **, idles)
  54. VARx(int, idlemax)
  55. VARx(int, idlecnt)
  56. VARx(struct ev_prepare **, prepares)
  57. VARx(int, preparemax)
  58. VARx(int, preparecnt)
  59. VARx(struct ev_check **, checks)
  60. VARx(int, checkmax)
  61. VARx(int, checkcnt)
  62. #undef VARx