X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/1b109e5d8b0948a2e7151b3820f1c4784cafeece..736c339cd39bb22dacbf56274203876871f63196:/ev.h?ds=inline diff --git a/ev.h b/ev.h index d8f7ae1..1ffed6f 100644 --- a/ev.h +++ b/ev.h @@ -30,6 +30,10 @@ #ifndef EV_H #define EV_H +#ifdef __cplusplus +extern "C" { +#endif + typedef double ev_tstamp; /* eventmask, revents, events... */ @@ -173,9 +177,9 @@ int ev_version_major (void); 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); @@ -245,5 +249,9 @@ void ev_child_start (struct ev_child *w); void ev_child_stop (struct ev_child *w); #endif +#ifdef __cplusplus +} +#endif + #endif