Blame ev_vars.h

Packit aac759
/*
Packit aac759
 * loop member variable declarations
Packit aac759
 *
Packit aac759
 * Copyright (c) 2007,2008,2009,2010,2011,2012,2013 Marc Alexander Lehmann <libev@schmorp.de>
Packit aac759
 * All rights reserved.
Packit aac759
 *
Packit aac759
 * Redistribution and use in source and binary forms, with or without modifica-
Packit aac759
 * tion, are permitted provided that the following conditions are met:
Packit aac759
 *
Packit aac759
 *   1.  Redistributions of source code must retain the above copyright notice,
Packit aac759
 *       this list of conditions and the following disclaimer.
Packit aac759
 *
Packit aac759
 *   2.  Redistributions in binary form must reproduce the above copyright
Packit aac759
 *       notice, this list of conditions and the following disclaimer in the
Packit aac759
 *       documentation and/or other materials provided with the distribution.
Packit aac759
 *
Packit aac759
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
Packit aac759
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MER-
Packit aac759
 * CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
Packit aac759
 * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPE-
Packit aac759
 * CIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
Packit aac759
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
Packit aac759
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
Packit aac759
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTH-
Packit aac759
 * ERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
Packit aac759
 * OF THE POSSIBILITY OF SUCH DAMAGE.
Packit aac759
 *
Packit aac759
 * Alternatively, the contents of this file may be used under the terms of
Packit aac759
 * the GNU General Public License ("GPL") version 2 or any later version,
Packit aac759
 * in which case the provisions of the GPL are applicable instead of
Packit aac759
 * the above. If you wish to allow the use of your version of this file
Packit aac759
 * only under the terms of the GPL and not to allow others to use your
Packit aac759
 * version of this file under the BSD license, indicate your decision
Packit aac759
 * by deleting the provisions above and replace them with the notice
Packit aac759
 * and other provisions required by the GPL. If you do not delete the
Packit aac759
 * provisions above, a recipient may use your version of this file under
Packit aac759
 * either the BSD or the GPL.
Packit aac759
 */
Packit aac759
Packit aac759
#define VARx(type,name) VAR(name, type name)
Packit aac759
Packit aac759
VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */
Packit aac759
VARx(ev_tstamp, mn_now)    /* monotonic clock "now" */
Packit aac759
VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
Packit aac759
Packit aac759
/* for reverse feeding of events */
Packit aac759
VARx(W *, rfeeds)
Packit aac759
VARx(int, rfeedmax)
Packit aac759
VARx(int, rfeedcnt)
Packit aac759
Packit aac759
VAR (pendings, ANPENDING *pendings [NUMPRI])
Packit aac759
VAR (pendingmax, int pendingmax [NUMPRI])
Packit aac759
VAR (pendingcnt, int pendingcnt [NUMPRI])
Packit aac759
VARx(int, pendingpri) /* highest priority currently pending */
Packit aac759
VARx(ev_prepare, pending_w) /* dummy pending watcher */
Packit aac759
Packit aac759
VARx(ev_tstamp, io_blocktime)
Packit aac759
VARx(ev_tstamp, timeout_blocktime)
Packit aac759
Packit aac759
VARx(int, backend)
Packit aac759
VARx(int, activecnt) /* total number of active events ("refcount") */
Packit aac759
VARx(EV_ATOMIC_T, loop_done)  /* signal by ev_break */
Packit aac759
Packit aac759
VARx(int, backend_fd)
Packit aac759
VARx(ev_tstamp, backend_mintime) /* assumed typical timer resolution */
Packit aac759
VAR (backend_modify, void (*backend_modify)(EV_P_ int fd, int oev, int nev))
Packit aac759
VAR (backend_poll  , void (*backend_poll)(EV_P_ ev_tstamp timeout))
Packit aac759
Packit aac759
VARx(ANFD *, anfds)
Packit aac759
VARx(int, anfdmax)
Packit aac759
Packit aac759
VAR (evpipe, int evpipe [2])
Packit aac759
VARx(ev_io, pipe_w)
Packit aac759
VARx(EV_ATOMIC_T, pipe_write_wanted)
Packit aac759
VARx(EV_ATOMIC_T, pipe_write_skipped)
Packit aac759
Packit aac759
#if !defined(_WIN32) || EV_GENWRAP
Packit aac759
VARx(pid_t, curpid)
Packit aac759
#endif
Packit aac759
Packit aac759
VARx(char, postfork)  /* true if we need to recreate kernel state after fork */
Packit aac759
Packit aac759
#if EV_USE_SELECT || EV_GENWRAP
Packit aac759
VARx(void *, vec_ri)
Packit aac759
VARx(void *, vec_ro)
Packit aac759
VARx(void *, vec_wi)
Packit aac759
VARx(void *, vec_wo)
Packit aac759
#if defined(_WIN32) || EV_GENWRAP
Packit aac759
VARx(void *, vec_eo)
Packit aac759
#endif
Packit aac759
VARx(int, vec_max)
Packit aac759
#endif
Packit aac759
Packit aac759
#if EV_USE_POLL || EV_GENWRAP
Packit aac759
VARx(struct pollfd *, polls)
Packit aac759
VARx(int, pollmax)
Packit aac759
VARx(int, pollcnt)
Packit aac759
VARx(int *, pollidxs) /* maps fds into structure indices */
Packit aac759
VARx(int, pollidxmax)
Packit aac759
#endif
Packit aac759
Packit aac759
#if EV_USE_EPOLL || EV_GENWRAP
Packit aac759
VARx(struct epoll_event *, epoll_events)
Packit aac759
VARx(int, epoll_eventmax)
Packit aac759
VARx(int *, epoll_eperms)
Packit aac759
VARx(int, epoll_epermcnt)
Packit aac759
VARx(int, epoll_epermmax)
Packit aac759
#endif
Packit aac759
Packit aac759
#if EV_USE_KQUEUE || EV_GENWRAP
Packit aac759
VARx(pid_t, kqueue_fd_pid)
Packit aac759
VARx(struct kevent *, kqueue_changes)
Packit aac759
VARx(int, kqueue_changemax)
Packit aac759
VARx(int, kqueue_changecnt)
Packit aac759
VARx(struct kevent *, kqueue_events)
Packit aac759
VARx(int, kqueue_eventmax)
Packit aac759
#endif
Packit aac759
Packit aac759
#if EV_USE_PORT || EV_GENWRAP
Packit aac759
VARx(struct port_event *, port_events)
Packit aac759
VARx(int, port_eventmax)
Packit aac759
#endif
Packit aac759
Packit aac759
#if EV_USE_IOCP || EV_GENWRAP
Packit aac759
VARx(HANDLE, iocp)
Packit aac759
#endif
Packit aac759
Packit aac759
VARx(int *, fdchanges)
Packit aac759
VARx(int, fdchangemax)
Packit aac759
VARx(int, fdchangecnt)
Packit aac759
Packit aac759
VARx(ANHE *, timers)
Packit aac759
VARx(int, timermax)
Packit aac759
VARx(int, timercnt)
Packit aac759
Packit aac759
#if EV_PERIODIC_ENABLE || EV_GENWRAP
Packit aac759
VARx(ANHE *, periodics)
Packit aac759
VARx(int, periodicmax)
Packit aac759
VARx(int, periodiccnt)
Packit aac759
#endif
Packit aac759
Packit aac759
#if EV_IDLE_ENABLE || EV_GENWRAP
Packit aac759
VAR (idles, ev_idle **idles [NUMPRI])
Packit aac759
VAR (idlemax, int idlemax [NUMPRI])
Packit aac759
VAR (idlecnt, int idlecnt [NUMPRI])
Packit aac759
#endif
Packit aac759
VARx(int, idleall) /* total number */
Packit aac759
Packit aac759
VARx(struct ev_prepare **, prepares)
Packit aac759
VARx(int, preparemax)
Packit aac759
VARx(int, preparecnt)
Packit aac759
Packit aac759
VARx(struct ev_check **, checks)
Packit aac759
VARx(int, checkmax)
Packit aac759
VARx(int, checkcnt)
Packit aac759
Packit aac759
#if EV_FORK_ENABLE || EV_GENWRAP
Packit aac759
VARx(struct ev_fork **, forks)
Packit aac759
VARx(int, forkmax)
Packit aac759
VARx(int, forkcnt)
Packit aac759
#endif
Packit aac759
Packit aac759
#if EV_CLEANUP_ENABLE || EV_GENWRAP
Packit aac759
VARx(struct ev_cleanup **, cleanups)
Packit aac759
VARx(int, cleanupmax)
Packit aac759
VARx(int, cleanupcnt)
Packit aac759
#endif
Packit aac759
Packit aac759
#if EV_ASYNC_ENABLE || EV_GENWRAP
Packit aac759
VARx(EV_ATOMIC_T, async_pending)
Packit aac759
VARx(struct ev_async **, asyncs)
Packit aac759
VARx(int, asyncmax)
Packit aac759
VARx(int, asynccnt)
Packit aac759
#endif
Packit aac759
Packit aac759
#if EV_USE_INOTIFY || EV_GENWRAP
Packit aac759
VARx(int, fs_fd)
Packit aac759
VARx(ev_io, fs_w)
Packit aac759
VARx(char, fs_2625) /* whether we are running in linux 2.6.25 or newer */
Packit aac759
VAR (fs_hash, ANFS fs_hash [EV_INOTIFY_HASHSIZE])
Packit aac759
#endif
Packit aac759
Packit aac759
VARx(EV_ATOMIC_T, sig_pending)
Packit aac759
#if EV_USE_SIGNALFD || EV_GENWRAP
Packit aac759
VARx(int, sigfd)
Packit aac759
VARx(ev_io, sigfd_w)
Packit aac759
VARx(sigset_t, sigfd_set)
Packit aac759
#endif
Packit aac759
Packit aac759
VARx(unsigned int, origflags) /* original loop flags */
Packit aac759
Packit aac759
#if EV_FEATURE_API || EV_GENWRAP
Packit aac759
VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */
Packit aac759
VARx(unsigned int, loop_depth) /* #ev_run enters - #ev_run leaves */
Packit aac759
Packit aac759
VARx(void *, userdata)
Packit aac759
/* C++ doesn't support the ev_loop_callback typedef here. stinks. */
Packit aac759
VAR (release_cb, void (*release_cb)(EV_P) EV_THROW)
Packit aac759
VAR (acquire_cb, void (*acquire_cb)(EV_P) EV_THROW)
Packit aac759
VAR (invoke_cb , ev_loop_callback invoke_cb)
Packit aac759
#endif
Packit aac759
Packit aac759
#undef VARx
Packit aac759