#ifndef EV_H
#define EV_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef double ev_tstamp;
/* eventmask, revents, events... */
int ev_version_minor (void);
/* these three calls are suitable for plugging into pthread_atfork */
-void ev_prefork (void);
-void ev_postfork_parent (void);
-void ev_postfork_child (void);
+void ev_fork_prepare (void);
+void ev_fork_parent (void);
+void ev_fork_child (void);
extern ev_tstamp ev_now; /* time w.r.t. timers and the eventloop, updated after each poll */
ev_tstamp ev_time (void);
void ev_child_stop (struct ev_child *w);
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif